using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.InteropServices; using UnityFusion.CLR.TypeSystem; using UnityFusion.CLR.Method; using UnityFusion.Runtime.Enviorment; using UnityFusion.Runtime.Intepreter; using UnityFusion.Runtime.Stack; using UnityFusion.Reflection; using UnityFusion.CLR.Utils; #if DEBUG && !DISABLE_UNITYFUSION_DEBUG using AutoList = System.Collections.Generic.List; #else using AutoList = UnityFusion.Other.UncheckedList; #endif namespace UnityFusion.Runtime.Generated { unsafe class UnityEngine_Screen_Binding { public static void Register(UnityFusion.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(UnityEngine.Screen); args = new Type[]{}; method = type.GetMethod("get_width", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_width_0); args = new Type[]{}; method = type.GetMethod("get_height", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_height_1); args = new Type[]{}; method = type.GetMethod("get_dpi", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_dpi_2); args = new Type[]{}; method = type.GetMethod("get_currentResolution", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_currentResolution_3); args = new Type[]{}; method = type.GetMethod("get_resolutions", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_resolutions_4); args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(UnityEngine.FullScreenMode), typeof(UnityEngine.RefreshRate)}; method = type.GetMethod("SetResolution", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetResolution_5); args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(UnityEngine.FullScreenMode)}; method = type.GetMethod("SetResolution", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetResolution_6); args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(System.Boolean)}; method = type.GetMethod("SetResolution", flag, null, args, null); app.RegisterCLRMethodRedirection(method, SetResolution_7); args = new Type[]{}; method = type.GetMethod("get_fullScreen", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_fullScreen_8); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_fullScreen", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_fullScreen_9); args = new Type[]{}; method = type.GetMethod("get_fullScreenMode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_fullScreenMode_10); args = new Type[]{typeof(UnityEngine.FullScreenMode)}; method = type.GetMethod("set_fullScreenMode", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_fullScreenMode_11); args = new Type[]{}; method = type.GetMethod("get_safeArea", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_safeArea_12); args = new Type[]{}; method = type.GetMethod("get_cutouts", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_cutouts_13); args = new Type[]{}; method = type.GetMethod("get_autorotateToPortrait", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_autorotateToPortrait_14); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_autorotateToPortrait", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_autorotateToPortrait_15); args = new Type[]{}; method = type.GetMethod("get_autorotateToPortraitUpsideDown", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_autorotateToPortraitUpsideDown_16); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_autorotateToPortraitUpsideDown", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_autorotateToPortraitUpsideDown_17); args = new Type[]{}; method = type.GetMethod("get_autorotateToLandscapeLeft", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_autorotateToLandscapeLeft_18); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_autorotateToLandscapeLeft", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_autorotateToLandscapeLeft_19); args = new Type[]{}; method = type.GetMethod("get_autorotateToLandscapeRight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_autorotateToLandscapeRight_20); args = new Type[]{typeof(System.Boolean)}; method = type.GetMethod("set_autorotateToLandscapeRight", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_autorotateToLandscapeRight_21); args = new Type[]{}; method = type.GetMethod("get_orientation", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_orientation_22); args = new Type[]{typeof(UnityEngine.ScreenOrientation)}; method = type.GetMethod("set_orientation", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_orientation_23); args = new Type[]{}; method = type.GetMethod("get_sleepTimeout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_sleepTimeout_24); args = new Type[]{typeof(System.Int32)}; method = type.GetMethod("set_sleepTimeout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_sleepTimeout_25); args = new Type[]{}; method = type.GetMethod("get_brightness", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_brightness_26); args = new Type[]{typeof(System.Single)}; method = type.GetMethod("set_brightness", flag, null, args, null); app.RegisterCLRMethodRedirection(method, set_brightness_27); args = new Type[]{}; method = type.GetMethod("get_mainWindowPosition", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_mainWindowPosition_28); args = new Type[]{}; method = type.GetMethod("get_mainWindowDisplayInfo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, get_mainWindowDisplayInfo_29); args = new Type[]{typeof(System.Collections.Generic.List)}; method = type.GetMethod("GetDisplayLayout", flag, null, args, null); app.RegisterCLRMethodRedirection(method, GetDisplayLayout_30); args = new Type[]{typeof(UnityEngine.DisplayInfo).MakeByRefType(), typeof(UnityEngine.Vector2Int)}; method = type.GetMethod("MoveMainWindowTo", flag, null, args, null); app.RegisterCLRMethodRedirection(method, MoveMainWindowTo_31); app.RegisterCLRCreateDefaultInstance(type, () => new UnityEngine.Screen()); app.RegisterCLRCreateArrayInstance(type, s => new UnityEngine.Screen[s]); args = new Type[]{}; method = type.GetConstructor(flag, null, args, null); app.RegisterCLRMethodRedirection(method, Ctor_0); } static StackObject* get_width_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.width; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* get_height_1(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.height; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* get_dpi_2(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.dpi; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* get_currentResolution_3(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.currentResolution; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_resolutions_4(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.resolutions; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* SetResolution_5(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.RefreshRate @preferredRefreshRate = (UnityEngine.RefreshRate)typeof(UnityEngine.RefreshRate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.FullScreenMode @fullscreenMode = (UnityEngine.FullScreenMode)typeof(UnityEngine.FullScreenMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Int32 @width = ptr_of_this_method->Value; UnityEngine.Screen.SetResolution(@width, @height, @fullscreenMode, @preferredRefreshRate); return __ret; } static StackObject* SetResolution_6(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FullScreenMode @fullscreenMode = (UnityEngine.FullScreenMode)typeof(UnityEngine.FullScreenMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @width = ptr_of_this_method->Value; UnityEngine.Screen.SetResolution(@width, @height, @fullscreenMode); return __ret; } static StackObject* SetResolution_7(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @fullscreen = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @width = ptr_of_this_method->Value; UnityEngine.Screen.SetResolution(@width, @height, @fullscreen); return __ret; } static StackObject* get_fullScreen_8(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.fullScreen; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_fullScreen_9(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; UnityEngine.Screen.fullScreen = value; return __ret; } static StackObject* get_fullScreenMode_10(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.fullScreenMode; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_fullScreenMode_11(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FullScreenMode @value = (UnityEngine.FullScreenMode)typeof(UnityEngine.FullScreenMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __intp.Free(ptr_of_this_method); UnityEngine.Screen.fullScreenMode = value; return __ret; } static StackObject* get_safeArea_12(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.safeArea; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_cutouts_13(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.cutouts; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_autorotateToPortrait_14(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.autorotateToPortrait; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_autorotateToPortrait_15(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; UnityEngine.Screen.autorotateToPortrait = value; return __ret; } static StackObject* get_autorotateToPortraitUpsideDown_16(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.autorotateToPortraitUpsideDown; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_autorotateToPortraitUpsideDown_17(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; UnityEngine.Screen.autorotateToPortraitUpsideDown = value; return __ret; } static StackObject* get_autorotateToLandscapeLeft_18(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.autorotateToLandscapeLeft; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_autorotateToLandscapeLeft_19(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; UnityEngine.Screen.autorotateToLandscapeLeft = value; return __ret; } static StackObject* get_autorotateToLandscapeRight_20(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.autorotateToLandscapeRight; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; } static StackObject* set_autorotateToLandscapeRight_21(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; UnityEngine.Screen.autorotateToLandscapeRight = value; return __ret; } static StackObject* get_orientation_22(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.orientation; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* set_orientation_23(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.ScreenOrientation @value = (UnityEngine.ScreenOrientation)typeof(UnityEngine.ScreenOrientation).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20); __intp.Free(ptr_of_this_method); UnityEngine.Screen.orientation = value; return __ret; } static StackObject* get_sleepTimeout_24(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.sleepTimeout; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_sleepTimeout_25(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @value = ptr_of_this_method->Value; UnityEngine.Screen.sleepTimeout = value; return __ret; } static StackObject* get_brightness_26(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.brightness; __ret->ObjectType = ObjectTypes.Float; *(float*)&__ret->Value = result_of_this_method; return __ret + 1; } static StackObject* set_brightness_27(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Single @value = *(float*)&ptr_of_this_method->Value; UnityEngine.Screen.brightness = value; return __ret; } static StackObject* get_mainWindowPosition_28(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.mainWindowPosition; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* get_mainWindowDisplayInfo_29(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = UnityEngine.Screen.mainWindowDisplayInfo; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* GetDisplayLayout_30(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Collections.Generic.List @displayLayout = (System.Collections.Generic.List)typeof(System.Collections.Generic.List).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0); __intp.Free(ptr_of_this_method); UnityEngine.Screen.GetDisplayLayout(@displayLayout); return __ret; } static StackObject* MoveMainWindowTo_31(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Vector2Int @position = (UnityEngine.Vector2Int)typeof(UnityEngine.Vector2Int).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.DisplayInfo @display = (UnityEngine.DisplayInfo)typeof(UnityEngine.DisplayInfo).CheckCLRTypes(__intp.RetriveObject(ptr_of_this_method, __mStack), (CLR.Utils.Extensions.TypeFlags)16); var result_of_this_method = UnityEngine.Screen.MoveMainWindowTo(in @display, @position); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); __intp.FreeStackValueType(ptr_of_this_method); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); switch(ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = ILIntepreter.ResolveReference(ptr_of_this_method); object ___obj = @display; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if(___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = @display; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @display); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if(___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = @display; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @display); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.DisplayInfo[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @display; } break; } __intp.Free(ptr_of_this_method); object obj_result_of_this_method = result_of_this_method; if(obj_result_of_this_method is CrossBindingAdaptorType) { return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance); } return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, AutoList __mStack, CLRMethod __method, bool isNewObj) { UnityFusion.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* __ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new UnityEngine.Screen(); return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); } } }