#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 SFXPlayUtilityWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(SFXPlayUtility);
|
Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayEffectAsync", _m_PlayEffectAsync);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayBattleEffect", _m_PlayBattleEffect);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayWithEulerAngle", _m_PlayWithEulerAngle);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Request", _m_Request);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Release", _m_Release);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReleaseAndDestroy", _m_ReleaseAndDestroy);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Unitialize", _m_Unitialize);
|
|
|
|
|
|
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)
|
{
|
|
SFXPlayUtility gen_ret = new SFXPlayUtility();
|
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 SFXPlayUtility constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Initialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Initialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PlayEffectAsync(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
float _scale = (float)LuaAPI.lua_tonumber(L, 4);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
GActor _parent = (GActor)translator.GetObject(L, 3, typeof(GActor));
|
float _scale = (float)LuaAPI.lua_tonumber(L, 4);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
GActor _parent = (GActor)translator.GetObject(L, 3, typeof(GActor));
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
float _scale = (float)LuaAPI.lua_tonumber(L, 5);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _position, _forward, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _position, _forward );
|
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 SFXPlayUtility.PlayEffectAsync!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PlayBattleEffect(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
float _scale = (float)LuaAPI.lua_tonumber(L, 4);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _parent, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _parent );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
GActor _actor = (GActor)translator.GetObject(L, 3, typeof(GActor));
|
float _scale = (float)LuaAPI.lua_tonumber(L, 4);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _actor, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
GActor _actor = (GActor)translator.GetObject(L, 3, typeof(GActor));
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _actor );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
float _scale = (float)LuaAPI.lua_tonumber(L, 5);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _position, _forward, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayBattleEffect( _id, _position, _forward );
|
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 SFXPlayUtility.PlayBattleEffect!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Play(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
float _scale = (float)LuaAPI.lua_tonumber(L, 4);
|
|
SFXController gen_ret = gen_to_be_invoked.Play( _id, _parent, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
|
SFXController gen_ret = gen_to_be_invoked.Play( _id, _parent );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
float _scale = (float)LuaAPI.lua_tonumber(L, 5);
|
|
SFXController gen_ret = gen_to_be_invoked.Play( _id, _position, _forward, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward);
|
|
SFXController gen_ret = gen_to_be_invoked.Play( _id, _position, _forward );
|
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 SFXPlayUtility.Play!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_PlayWithEulerAngle(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _eulerAngle;translator.Get(L, 4, out _eulerAngle);
|
float _scale = (float)LuaAPI.lua_tonumber(L, 5);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayWithEulerAngle( _id, _position, _eulerAngle, _scale );
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
}
|
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4))
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
|
UnityEngine.Vector3 _eulerAngle;translator.Get(L, 4, out _eulerAngle);
|
|
SFXController gen_ret = gen_to_be_invoked.PlayWithEulerAngle( _id, _position, _eulerAngle );
|
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 SFXPlayUtility.PlayWithEulerAngle!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Request(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int _id = LuaAPI.xlua_tointeger(L, 2);
|
|
SFXController gen_ret = gen_to_be_invoked.Request( _id );
|
translator.Push(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_Release(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
SFXController _sfx = (SFXController)translator.GetObject(L, 2, typeof(SFXController));
|
|
gen_to_be_invoked.Release( _sfx );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ReleaseAndDestroy(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
SFXController _sfx = (SFXController)translator.GetObject(L, 2, typeof(SFXController));
|
|
gen_to_be_invoked.ReleaseAndDestroy( _sfx );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Unitialize(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Unitialize( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
}
|
}
|