static StackObject *Ctor_3(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, 5); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @linear = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @mipCount = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.TextureFormat @textureFormat = (UnityEngine.TextureFormat) typeof(UnityEngine.TextureFormat).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Int32 @height = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); System.Int32 @width = ptr_of_this_method->Value; var result_of_this_method = new UnityEngine.SparseTexture(@width, @height, @textureFormat, @mipCount, @linear); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_UpdateTile(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); { int _tileX = LuaAPI.xlua_tointeger(L, 2); int _tileY = LuaAPI.xlua_tointeger(L, 3); int _miplevel = LuaAPI.xlua_tointeger(L, 4); UnityEngine.Color32[] _data = (UnityEngine.Color32[])translator.GetObject(L, 5, typeof(UnityEngine.Color32[])); gen_to_be_invoked.UpdateTile(_tileX, _tileY, _miplevel, _data); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static StackObject *UpdateTileRaw_4(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, 5); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Byte[] @data = (System.Byte[]) typeof(System.Byte[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @miplevel = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @tileY = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Int32 @tileX = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); UnityEngine.SparseTexture instance_of_this_method = (UnityEngine.SparseTexture) typeof(UnityEngine.SparseTexture).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.UpdateTileRaw(@tileX, @tileY, @miplevel, @data); return(__ret); }
static int _m_UpdateTileRaw(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.SparseTexture __cl_gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); try { { int tileX = LuaAPI.xlua_tointeger(L, 2); int tileY = LuaAPI.xlua_tointeger(L, 3); int miplevel = LuaAPI.xlua_tointeger(L, 4); byte[] data = LuaAPI.lua_tobytes(L, 5); __cl_gen_to_be_invoked.UpdateTileRaw(tileX, tileY, miplevel, data); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
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 <UnityEngine.Experimental.Rendering.DefaultFormat>(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.DefaultFormat _format; translator.Get(L, 4, out _format); int _mipCount = LuaAPI.xlua_tointeger(L, 5); UnityEngine.SparseTexture gen_ret = new UnityEngine.SparseTexture(_width, _height, _format, _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 <UnityEngine.Experimental.Rendering.GraphicsFormat>(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 _format; translator.Get(L, 4, out _format); int _mipCount = LuaAPI.xlua_tointeger(L, 5); UnityEngine.SparseTexture gen_ret = new UnityEngine.SparseTexture(_width, _height, _format, _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 <UnityEngine.TextureFormat>(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.TextureFormat _textureFormat; translator.Get(L, 4, out _textureFormat); int _mipCount = LuaAPI.xlua_tointeger(L, 5); UnityEngine.SparseTexture gen_ret = new UnityEngine.SparseTexture(_width, _height, _textureFormat, _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 <UnityEngine.TextureFormat>(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); UnityEngine.SparseTexture gen_ret = new UnityEngine.SparseTexture(_width, _height, _textureFormat, _mipCount, _linear); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SparseTexture constructor!")); }
static int _g_get_isCreated(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.SparseTexture gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isCreated); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_tileHeight(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.SparseTexture __cl_gen_to_be_invoked = (UnityEngine.SparseTexture)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.tileHeight); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static StackObject *get_isCreated_2(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.SparseTexture instance_of_this_method = (UnityEngine.SparseTexture) typeof(UnityEngine.SparseTexture).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.isCreated; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.TextureFormat>(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.TextureFormat format; translator.Get(L, 4, out format); int mipCount = LuaAPI.xlua_tointeger(L, 5); UnityEngine.SparseTexture __cl_gen_ret = new UnityEngine.SparseTexture(width, height, format, mipCount); translator.Push(L, __cl_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 <UnityEngine.TextureFormat>(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 format; translator.Get(L, 4, out format); int mipCount = LuaAPI.xlua_tointeger(L, 5); bool linear = LuaAPI.lua_toboolean(L, 6); UnityEngine.SparseTexture __cl_gen_ret = new UnityEngine.SparseTexture(width, height, format, mipCount, linear); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SparseTexture constructor!")); }