static object PerformMemberwiseClone(ref object o) { var ins = new UnityEngine.ScreenOrientation(); ins = (UnityEngine.ScreenOrientation)o; return(ins); }
public void PushUnityEngineScreenOrientation(RealStatePtr L, UnityEngine.ScreenOrientation val) { if (UnityEngineScreenOrientation_TypeID == -1) { bool is_first; UnityEngineScreenOrientation_TypeID = getTypeId(L, typeof(UnityEngine.ScreenOrientation), out is_first); if (UnityEngineScreenOrientation_EnumRef == -1) { Utils.LoadCSTable(L, typeof(UnityEngine.ScreenOrientation)); UnityEngineScreenOrientation_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); } } if (LuaAPI.xlua_tryget_cachedud(L, (int)val, UnityEngineScreenOrientation_EnumRef) == 1) { return; } IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, UnityEngineScreenOrientation_TypeID); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail fail for UnityEngine.ScreenOrientation ,value=" + val); } LuaAPI.lua_getref(L, UnityEngineScreenOrientation_EnumRef); LuaAPI.lua_pushvalue(L, -2); LuaAPI.xlua_rawseti(L, -2, (int)val); LuaAPI.lua_pop(L, 1); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.ScreenOrientation o = (UnityEngine.ScreenOrientation)arg0; ToLua.Push(L, o); return(1); }
static int QPYX_set_orientation_YXQP(IntPtr L_YXQP) { try { UnityEngine.ScreenOrientation QPYX_arg0_YXQP = (UnityEngine.ScreenOrientation)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.ScreenOrientation)); UnityEngine.Screen.orientation = QPYX_arg0_YXQP; return(0); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int set_orientation(IntPtr L) { try { UnityEngine.ScreenOrientation arg0 = (UnityEngine.ScreenOrientation)ToLua.CheckObject(L, 2, typeof(UnityEngine.ScreenOrientation)); UnityEngine.Screen.orientation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_orientationter(IntPtr L) { try { UnityEngine.ScreenOrientation arg0 = (UnityEngine.ScreenOrientation)LuaDLL.luaL_checknumber(L, 1); UnityEngine.Screen.orientation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *set_orientation_18(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.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)); __intp.Free(ptr_of_this_method); UnityEngine.Screen.orientation = value; return(__ret); }
static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.ScreenOrientation instance_of_this_method) { ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.Object: { __mStack[ptr_of_this_method->Value] = instance_of_this_method; } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { var t = __domain.GetType(___obj.GetType()) as CLRType; t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method); } } break; case ObjectTypes.StaticFieldReference: { var t = __domain.GetType(ptr_of_this_method->Value); if (t is ILType) { ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method; } else { ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.ScreenOrientation[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method; } break; } }
static int set_orientation(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.Screen.orientation"); #endif try { UnityEngine.ScreenOrientation arg0 = (UnityEngine.ScreenOrientation)ToLua.CheckObject(L, 2, typeof(UnityEngine.ScreenOrientation)); UnityEngine.Screen.orientation = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void UpdateUnityEngineScreenOrientation(RealStatePtr L, int index, UnityEngine.ScreenOrientation val) { if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineScreenOrientation_TypeID) { throw new Exception("invalid userdata for UnityEngine.ScreenOrientation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.Pack(buff, 0, (int)val)) { throw new Exception("pack fail for UnityEngine.ScreenOrientation ,value=" + val); } } else { throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); } }
public void Get(RealStatePtr L, int index, out UnityEngine.ScreenOrientation val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != UnityEngineScreenOrientation_TypeID) { throw new Exception("invalid userdata for UnityEngine.ScreenOrientation"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for UnityEngine.ScreenOrientation"); } val = (UnityEngine.ScreenOrientation)e; } else { val = (UnityEngine.ScreenOrientation)objectCasters.GetCaster(typeof(UnityEngine.ScreenOrientation))(L, index, null); } }
static int set_orientation(IntPtr L) { UnityEngine.ScreenOrientation arg0 = (UnityEngine.ScreenOrientation)ToLua.CheckObject(L, 2, typeof(UnityEngine.ScreenOrientation)); UnityEngine.Screen.orientation = arg0; return(0); }
static void Push(IntPtr L, UnityEngine.ScreenOrientation arg) { ToLua.Push(L, arg); }
static int QPYX_IntToEnum_YXQP(IntPtr L_YXQP) { int QPYX_arg0_YXQP = (int)LuaDLL.lua_tonumber(L_YXQP, 1); UnityEngine.ScreenOrientation QPYX_o_YXQP = (UnityEngine.ScreenOrientation)QPYX_arg0_YXQP; ToLua.Push(L_YXQP, QPYX_o_YXQP); return(1); }
static void QPYX_Push_YXQP(IntPtr L_YXQP, UnityEngine.ScreenOrientation arg_YXQP) { ToLua.Push(L_YXQP, arg_YXQP); }