c1_unity/Assets/XLua/Gen/UnityEngine_CustomRenderTextureManagerWrap.cs
2023-04-03 11:04:31 +08:00

215 lines
7.6 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class UnityEngineCustomRenderTextureManagerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.CustomRenderTextureManager);
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, "GetAllCustomRenderTextures", _m_GetAllCustomRenderTextures_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "textureLoaded", _e_textureLoaded);
Utils.RegisterFunc(L, Utils.CLS_IDX, "textureUnloaded", _e_textureUnloaded);
Utils.RegisterFunc(L, Utils.CLS_IDX, "updateTriggered", _e_updateTriggered);
Utils.RegisterFunc(L, Utils.CLS_IDX, "initializeTriggered", _e_initializeTriggered);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "UnityEngine.CustomRenderTextureManager does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetAllCustomRenderTextures_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
System.Collections.Generic.List<UnityEngine.CustomRenderTexture> _currentCustomRenderTextures = (System.Collections.Generic.List<UnityEngine.CustomRenderTexture>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List<UnityEngine.CustomRenderTexture>));
UnityEngine.CustomRenderTextureManager.GetAllCustomRenderTextures( _currentCustomRenderTextures );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_textureLoaded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<UnityEngine.CustomRenderTexture> gen_delegate = translator.GetDelegate<System.Action<UnityEngine.CustomRenderTexture>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<UnityEngine.CustomRenderTexture>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.CustomRenderTextureManager.textureLoaded += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.CustomRenderTextureManager.textureLoaded -= 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.CustomRenderTextureManager.textureLoaded!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_textureUnloaded(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<UnityEngine.CustomRenderTexture> gen_delegate = translator.GetDelegate<System.Action<UnityEngine.CustomRenderTexture>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<UnityEngine.CustomRenderTexture>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.CustomRenderTextureManager.textureUnloaded += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.CustomRenderTextureManager.textureUnloaded -= 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.CustomRenderTextureManager.textureUnloaded!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_updateTriggered(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<UnityEngine.CustomRenderTexture, int> gen_delegate = translator.GetDelegate<System.Action<UnityEngine.CustomRenderTexture, int>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<UnityEngine.CustomRenderTexture, int>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.CustomRenderTextureManager.updateTriggered += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.CustomRenderTextureManager.updateTriggered -= 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.CustomRenderTextureManager.updateTriggered!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_initializeTriggered(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<UnityEngine.CustomRenderTexture> gen_delegate = translator.GetDelegate<System.Action<UnityEngine.CustomRenderTexture>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<UnityEngine.CustomRenderTexture>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
UnityEngine.CustomRenderTextureManager.initializeTriggered += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
UnityEngine.CustomRenderTextureManager.initializeTriggered -= 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.CustomRenderTextureManager.initializeTriggered!");
}
}
}