929 lines
30 KiB
C#
929 lines
30 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 BFBattlePoolWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BattlePool);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 28, 0, 0);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSceneNode", _m_SetSceneNode);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetShadow", _m_SetShadow);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShadow", _m_GetShadow);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEffectText", _m_SetEffectText);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetHpBar", _m_SetHpBar);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSkillToast", _m_SetSkillToast);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillBoxCollider", _m_GetSkillBoxCollider);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleSkillBoxCollider", _m_RecycleSkillBoxCollider);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillSphereCollider", _m_GetSkillSphereCollider);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleSkillSphereCollider", _m_RecycleSkillSphereCollider);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetContinuousTarge", _m_GetContinuousTarge);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleContinuousTarge", _m_RecycleContinuousTarge);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetColliderContainer", _m_GetColliderContainer);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleColliderContainer", _m_RecycleColliderContainer);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSphereBullet", _m_GetSphereBullet);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleSphereBullet", _m_RecycleSphereBullet);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBoxBullet", _m_GetBoxBullet);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RecycleBoxBullet", _m_RecycleBoxBullet);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectText", _m_GetEffectText);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutBackEffectText", _m_PutBackEffectText);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHpBar", _m_GetHpBar);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutBackHpBar", _m_PutBackHpBar);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillToast", _m_GetSkillToast);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PutBackSkillToast", _m_PutBackSkillToast);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Pause", _m_Pause);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Resume", _m_Resume);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetColliderUniqueId", _m_GetColliderUniqueId_xlua_st_);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.BattlePool();
|
|
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.BattlePool constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Init(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)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_SetSceneNode(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Transform _sceneNode = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
|
|
|
|
gen_to_be_invoked.SetSceneNode( _sceneNode );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetShadow(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.GameObject _shadow = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
|
|
gen_to_be_invoked.SetShadow( _shadow );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetShadow(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetShadow( );
|
|
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_SetEffectText(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.GameObject _effectText = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
UnityEngine.GameObject _effectTextRed = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
|
|
UnityEngine.GameObject _effectTextGreen = (UnityEngine.GameObject)translator.GetObject(L, 4, typeof(UnityEngine.GameObject));
|
|
UnityEngine.GameObject _effectTextYellow = (UnityEngine.GameObject)translator.GetObject(L, 5, typeof(UnityEngine.GameObject));
|
|
UnityEngine.Transform _numberRoot = (UnityEngine.Transform)translator.GetObject(L, 6, typeof(UnityEngine.Transform));
|
|
|
|
gen_to_be_invoked.SetEffectText( _effectText, _effectTextRed, _effectTextGreen, _effectTextYellow, _numberRoot );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetHpBar(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.GameObject _hpAtk = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
UnityEngine.GameObject _hpDef = (UnityEngine.GameObject)translator.GetObject(L, 3, typeof(UnityEngine.GameObject));
|
|
UnityEngine.Transform _numberRoot = (UnityEngine.Transform)translator.GetObject(L, 4, typeof(UnityEngine.Transform));
|
|
|
|
gen_to_be_invoked.SetHpBar( _hpAtk, _hpDef, _numberRoot );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetSkillToast(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.GameObject _skillToast = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
|
|
UnityEngine.Transform _skillToastRoot = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform));
|
|
|
|
gen_to_be_invoked.SetSkillToast( _skillToast, _skillToastRoot );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetSkillBoxCollider(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetSkillBoxCollider( );
|
|
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_RecycleSkillBoxCollider(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleControlBoxCollider _box = (BF.BattleControlBoxCollider)translator.GetObject(L, 2, typeof(BF.BattleControlBoxCollider));
|
|
|
|
gen_to_be_invoked.RecycleSkillBoxCollider( _box );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetSkillSphereCollider(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetSkillSphereCollider( );
|
|
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_RecycleSkillSphereCollider(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleControlSphereCollider _sphere = (BF.BattleControlSphereCollider)translator.GetObject(L, 2, typeof(BF.BattleControlSphereCollider));
|
|
|
|
gen_to_be_invoked.RecycleSkillSphereCollider( _sphere );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetContinuousTarge(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetContinuousTarge( );
|
|
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_RecycleContinuousTarge(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleContinuousTarget _target = (BF.BattleContinuousTarget)translator.GetObject(L, 2, typeof(BF.BattleContinuousTarget));
|
|
|
|
gen_to_be_invoked.RecycleContinuousTarge( _target );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetColliderContainer(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetColliderContainer( );
|
|
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_RecycleColliderContainer(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleControlColliderContainer _container = (BF.BattleControlColliderContainer)translator.GetObject(L, 2, typeof(BF.BattleControlColliderContainer));
|
|
|
|
gen_to_be_invoked.RecycleColliderContainer( _container );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetSphereBullet(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetSphereBullet( );
|
|
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_RecycleSphereBullet(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleControlSphereBullet _bullet = (BF.BattleControlSphereBullet)translator.GetObject(L, 2, typeof(BF.BattleControlSphereBullet));
|
|
|
|
gen_to_be_invoked.RecycleSphereBullet( _bullet );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetBoxBullet(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBoxBullet( );
|
|
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_RecycleBoxBullet(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleControlBoxBullet _bullet = (BF.BattleControlBoxBullet)translator.GetObject(L, 2, typeof(BF.BattleControlBoxBullet));
|
|
|
|
gen_to_be_invoked.RecycleBoxBullet( _bullet );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetEffectText(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
int _colorType = LuaAPI.xlua_tointeger(L, 2);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetEffectText( _colorType );
|
|
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_PutBackEffectText(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleEffectNumber _comp = (BF.BattleEffectNumber)translator.GetObject(L, 2, typeof(BF.BattleEffectNumber));
|
|
int _colorType = LuaAPI.xlua_tointeger(L, 3);
|
|
|
|
gen_to_be_invoked.PutBackEffectText( _comp, _colorType );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetHpBar(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
int _side = LuaAPI.xlua_tointeger(L, 2);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetHpBar( _side );
|
|
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_PutBackHpBar(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleHpBar _comp = (BF.BattleHpBar)translator.GetObject(L, 2, typeof(BF.BattleHpBar));
|
|
int _side = LuaAPI.xlua_tointeger(L, 3);
|
|
|
|
gen_to_be_invoked.PutBackHpBar( _comp, _side );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetSkillToast(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetSkillToast( );
|
|
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_PutBackSkillToast(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.BattleSkillToast _comp = (BF.BattleSkillToast)translator.GetObject(L, 2, typeof(BF.BattleSkillToast));
|
|
|
|
gen_to_be_invoked.PutBackSkillToast( _comp );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetColliderUniqueId_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = BF.BattlePool.GetColliderUniqueId( );
|
|
LuaAPI.xlua_pushinteger(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_Pause(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Pause( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Resume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Resume( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Clear(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattlePool gen_to_be_invoked = (BF.BattlePool)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.Clear( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|