82 lines
2.8 KiB
C#
82 lines
2.8 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 BFBattleTMPNumberWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BattleTMPNumber);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 15, 0, 0);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PUT_BACK_TIME", BF.BattleTMPNumber.PUT_BACK_TIME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "dmgNumber2StrDic", BF.BattleTMPNumber.dmgNumber2StrDic);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "dmgAdd", BF.BattleTMPNumber.dmgAdd);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "dmgSub", BF.BattleTMPNumber.dmgSub);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "critNumber2StrDic", BF.BattleTMPNumber.critNumber2StrDic);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "critFlag", BF.BattleTMPNumber.critFlag);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "critAdd", BF.BattleTMPNumber.critAdd);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "critSub", BF.BattleTMPNumber.critSub);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "healNumber2StrDic", BF.BattleTMPNumber.healNumber2StrDic);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "healAdd", BF.BattleTMPNumber.healAdd);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "healSub", BF.BattleTMPNumber.healSub);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "redNumber2StrDic", BF.BattleTMPNumber.redNumber2StrDic);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "redAdd", BF.BattleTMPNumber.redAdd);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "redSub", BF.BattleTMPNumber.redSub);
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "BF.BattleTMPNumber does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|