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

289 lines
9.0 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 BFPostEffectBehaviourWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.PostEffectBehaviour);
Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckSupport", _m_CheckSupport);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPostEffectType", _m_SetPostEffectType);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenPostEffect", _m_OpenPostEffect);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosePostEffect", _m_ClosePostEffect);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "EffectType", _g_get_EffectType);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "VividBloomEffect", _g_get_VividBloomEffect);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "FxaaEffect", _g_get_FxaaEffect);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "RadialBlurEffetc", _g_get_RadialBlurEffetc);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new BF.PostEffectBehaviour();
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 BF.PostEffectBehaviour constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CheckSupport(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.CheckSupport( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Init(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Init( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetPostEffectType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
{
BF.PostEffectType _type;translator.Get(L, 2, out _type);
gen_to_be_invoked.SetPostEffectType( _type );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OpenPostEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
{
BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType);
gen_to_be_invoked.OpenPostEffect( _effectType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ClosePostEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
{
BF.PostEffectType _effectType;translator.Get(L, 2, out _effectType);
gen_to_be_invoked.ClosePostEffect( _effectType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_EffectType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.EffectType);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_VividBloomEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.VividBloomEffect);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_FxaaEffect(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.FxaaEffect);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_RadialBlurEffetc(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.PostEffectBehaviour gen_to_be_invoked = (BF.PostEffectBehaviour)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.RadialBlurEffetc);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
}
}