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 Get(RealStatePtr L, int index, out PushAsTableStruct val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != PushAsTableStruct_TypeID) { throw new Exception("invalid userdata for PushAsTableStruct"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); if (!CopyByValue.UnPack(buff, 0, out val)) { throw new Exception("unpack fail for PushAsTableStruct"); } } else if (type == LuaTypes.LUA_TTABLE) { CopyByValue.UnPack(this, L, index, out val); } else { val = (PushAsTableStruct)objectCasters.GetCaster(typeof(PushAsTableStruct))(L, index, null); } }
public void Get(RealStatePtr L, int index, out Tutorial.DrivenClass.TestEnumInner val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != TutorialDrivenClassTestEnumInner_TypeID) { throw new Exception("invalid userdata for Tutorial.DrivenClass.TestEnumInner"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Tutorial.DrivenClass.TestEnumInner"); } val = (Tutorial.DrivenClass.TestEnumInner)e; } else { val = (Tutorial.DrivenClass.TestEnumInner)objectCasters.GetCaster(typeof(Tutorial.DrivenClass.TestEnumInner))(L, index, null); } }
public void Get(RealStatePtr L, int index, out XLuaTest.MyEnum val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != XLuaTestMyEnum_TypeID) { throw new Exception("invalid userdata for XLuaTest.MyEnum"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for XLuaTest.MyEnum"); } val = (XLuaTest.MyEnum)e; } else { val = (XLuaTest.MyEnum)objectCasters.GetCaster(typeof(XLuaTest.MyEnum))(L, index, null); } }
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 Get(RealStatePtr L, int index, out DotEngine.UI.UILayerLevel val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != DotEngineUIUILayerLevel_TypeID) { throw new Exception("invalid userdata for DotEngine.UI.UILayerLevel"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for DotEngine.UI.UILayerLevel"); } val = (DotEngine.UI.UILayerLevel)e; } else { val = (DotEngine.UI.UILayerLevel)objectCasters.GetCaster(typeof(DotEngine.UI.UILayerLevel))(L, index, null); } }
public void Get(RealStatePtr L, int index, out System.Net.Sockets.ProtocolType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != SystemNetSocketsProtocolType_TypeID) { throw new Exception("invalid userdata for System.Net.Sockets.ProtocolType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for System.Net.Sockets.ProtocolType"); } val = (System.Net.Sockets.ProtocolType)e; } else { val = (System.Net.Sockets.ProtocolType)objectCasters.GetCaster(typeof(System.Net.Sockets.ProtocolType))(L, index, null); } }
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 Get(RealStatePtr L, int index, out Minecraft.BlocksData.BlockVertexType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != MinecraftBlocksDataBlockVertexType_TypeID) { throw new Exception("invalid userdata for Minecraft.BlocksData.BlockVertexType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for Minecraft.BlocksData.BlockVertexType"); } val = (Minecraft.BlocksData.BlockVertexType)e; } else { val = (Minecraft.BlocksData.BlockVertexType)objectCasters.GetCaster(typeof(Minecraft.BlocksData.BlockVertexType))(L, index, null); } }
public void Get(RealStatePtr L, int index, out ResourcePrioritizedCache.LoadPriority val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != ResourcePrioritizedCacheLoadPriority_TypeID) { throw new Exception("invalid userdata for ResourcePrioritizedCache.LoadPriority"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for ResourcePrioritizedCache.LoadPriority"); } val = (ResourcePrioritizedCache.LoadPriority)e; } else { val = (ResourcePrioritizedCache.LoadPriority)objectCasters.GetCaster(typeof(ResourcePrioritizedCache.LoadPriority))(L, index, null); } }
public void Get(RealStatePtr L, int index, out VVMUI.Script.XLua.XLuaCommandType val) { LuaTypes type = LuaAPI.lua_type(L, index); if (type == LuaTypes.LUA_TUSERDATA) { if (LuaAPI.xlua_gettypeid(L, index) != VVMUIScriptXLuaXLuaCommandType_TypeID) { throw new Exception("invalid userdata for VVMUI.Script.XLua.XLuaCommandType"); } IntPtr buff = LuaAPI.lua_touserdata(L, index); int e; if (!CopyByValue.UnPack(buff, 0, out e)) { throw new Exception("unpack fail for VVMUI.Script.XLua.XLuaCommandType"); } val = (VVMUI.Script.XLua.XLuaCommandType)e; } else { val = (VVMUI.Script.XLua.XLuaCommandType)objectCasters.GetCaster(typeof(VVMUI.Script.XLua.XLuaCommandType))(L, index, null); } }