631 lines
27 KiB
C#
631 lines
27 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 BFBattleConstWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BattleConst);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 48, 19, 19);
|
|
|
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SIDE_ATK", BF.BattleConst.SIDE_ATK);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SIDE_DEF", BF.BattleConst.SIDE_DEF);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DOTWEEN_ID_BATTLE", BF.BattleConst.DOTWEEN_ID_BATTLE);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_POOL_NAME", BF.BattleConst.BATTLE_POOL_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_ROOT_NAME", BF.BattleConst.BATTLE_ROOT_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_BOX_COLLIDER_NAME", BF.BattleConst.BATTLE_BOX_COLLIDER_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_SPHERE_COLLIDER_NAME", BF.BattleConst.BATTLE_SPHERE_COLLIDER_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_SPHERE_BULLET_NAME", BF.BattleConst.BATTLE_SPHERE_BULLET_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_BOX_BULLET_NAME", BF.BattleConst.BATTLE_BOX_BULLET_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BATTLE_AIM_NAME", BF.BattleConst.BATTLE_AIM_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEFAULT_FACTOR", BF.BattleConst.DEFAULT_FACTOR);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEFAULT_FACTOR_FLOAT", BF.BattleConst.DEFAULT_FACTOR_FLOAT);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEFAULT_FACTOR_DOUBLE", BF.BattleConst.DEFAULT_FACTOR_DOUBLE);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CircleRadians", BF.BattleConst.CircleRadians);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NegativeCircleRadians", BF.BattleConst.NegativeCircleRadians);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DelayRecycle", BF.BattleConst.DelayRecycle);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DeadMoveSpeed", BF.BattleConst.DeadMoveSpeed);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DeadMoveDistance", BF.BattleConst.DeadMoveDistance);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SPRITE_CHARACTER_SHADER_NAME", BF.BattleConst.SPRITE_CHARACTER_SHADER_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MODEL_CHARACTER_SHADER_NAME", BF.BattleConst.MODEL_CHARACTER_SHADER_NAME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UNIT_MOVE_DISTANCE", BF.BattleConst.UNIT_MOVE_DISTANCE);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UNIT_MOVE_DISTANCE_OPPOSITE", BF.BattleConst.UNIT_MOVE_DISTANCE_OPPOSITE);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ITEM_QUICK_MOVE_SPEED", BF.BattleConst.ITEM_QUICK_MOVE_SPEED);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ITEM_QUICK_MOVE_TIME", BF.BattleConst.ITEM_QUICK_MOVE_TIME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EXP_ITEM_MOVE_SPEED", BF.BattleConst.EXP_ITEM_MOVE_SPEED);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EXP_ITEM_MOVE_TIME", BF.BattleConst.EXP_ITEM_MOVE_TIME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CHECK_DIRECTION_TIME", BF.BattleConst.CHECK_DIRECTION_TIME);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RADIANS_10", BF.BattleConst.RADIANS_10);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RADIANS_180", BF.BattleConst.RADIANS_180);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RADIANS_NEGATIVE_180", BF.BattleConst.RADIANS_NEGATIVE_180);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RADIANS_360", BF.BattleConst.RADIANS_360);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_MOVE_L", BF.BattleConst.EFFECT_TYPE_MOVE_L);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_MOVE_R", BF.BattleConst.EFFECT_TYPE_MOVE_R);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_MOVE_L_2", BF.BattleConst.EFFECT_TYPE_MOVE_L_2);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_MOVE_R_2", BF.BattleConst.EFFECT_TYPE_MOVE_R_2);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_CRIT", BF.BattleConst.EFFECT_TYPE_CRIT);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_TYPE_BUFF", BF.BattleConst.EFFECT_TYPE_BUFF);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SFX_DJGX_01", BF.BattleConst.SFX_DJGX_01);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SFX_BXGZ_01", BF.BattleConst.SFX_BXGZ_01);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_MOVE_L", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_MOVE_L);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_MOVE_R", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_MOVE_R);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_BUFF", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_BUFF);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_CRIT", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_CRIT);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_MOVE_L_2", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_MOVE_L_2);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HASH_NAME_NUMBER_MOVE_R_2", BF.BattleConst.ANIMATOR_HASH_NAME_NUMBER_MOVE_R_2);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ANIMATOR_HAS_NAME_SKILL_TOAST", BF.BattleConst.ANIMATOR_HAS_NAME_SKILL_TOAST);
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RIGIDBODY_CONSTRAINTS", BF.BattleConst.RIGIDBODY_CONSTRAINTS);
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LAYER_DEFAULT", _g_get_LAYER_DEFAULT);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LAYER_HERO", _g_get_LAYER_HERO);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LAYER_MONSTER", _g_get_LAYER_MONSTER);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LAYER_ATK_BULLET", _g_get_LAYER_ATK_BULLET);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "LAYER_DEF_BULLET", _g_get_LAYER_DEF_BULLET);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UnitMaterialPropertyBlock", _g_get_UnitMaterialPropertyBlock);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UNIT_GLOW_COLOR_ID", _g_get_UNIT_GLOW_COLOR_ID);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "UNIT_GLOW_COLOR_ENABLE_ID", _g_get_UNIT_GLOW_COLOR_ENABLE_ID);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "COLOR_ICE", _g_get_COLOR_ICE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "COLOR_STAGNATE", _g_get_COLOR_STAGNATE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "COLOR_FEAR", _g_get_COLOR_FEAR);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAP_TYPE_UNLIMITED", _g_get_MAP_TYPE_UNLIMITED);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAP_TYPE_PORTRAIT", _g_get_MAP_TYPE_PORTRAIT);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAP_TYPE_SQUARE", _g_get_MAP_TYPE_SQUARE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAP_TYPE_SMALL_PORTRAIT", _g_get_MAP_TYPE_SMALL_PORTRAIT);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "MAP_TYPE_SMALL_SQUARE", _g_get_MAP_TYPE_SMALL_SQUARE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ANIMATION_NAME_HASH_RUN", _g_get_ANIMATION_NAME_HASH_RUN);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ANIMATION_NAME_HASH_CHARGE", _g_get_ANIMATION_NAME_HASH_CHARGE);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ANIMATION_NAME_HASH_CHARGE_LOOP", _g_get_ANIMATION_NAME_HASH_CHARGE_LOOP);
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LAYER_DEFAULT", _s_set_LAYER_DEFAULT);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LAYER_HERO", _s_set_LAYER_HERO);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LAYER_MONSTER", _s_set_LAYER_MONSTER);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LAYER_ATK_BULLET", _s_set_LAYER_ATK_BULLET);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "LAYER_DEF_BULLET", _s_set_LAYER_DEF_BULLET);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "UnitMaterialPropertyBlock", _s_set_UnitMaterialPropertyBlock);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "UNIT_GLOW_COLOR_ID", _s_set_UNIT_GLOW_COLOR_ID);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "UNIT_GLOW_COLOR_ENABLE_ID", _s_set_UNIT_GLOW_COLOR_ENABLE_ID);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "COLOR_ICE", _s_set_COLOR_ICE);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "COLOR_STAGNATE", _s_set_COLOR_STAGNATE);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "COLOR_FEAR", _s_set_COLOR_FEAR);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAP_TYPE_UNLIMITED", _s_set_MAP_TYPE_UNLIMITED);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAP_TYPE_PORTRAIT", _s_set_MAP_TYPE_PORTRAIT);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAP_TYPE_SQUARE", _s_set_MAP_TYPE_SQUARE);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAP_TYPE_SMALL_PORTRAIT", _s_set_MAP_TYPE_SMALL_PORTRAIT);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "MAP_TYPE_SMALL_SQUARE", _s_set_MAP_TYPE_SMALL_SQUARE);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ANIMATION_NAME_HASH_RUN", _s_set_ANIMATION_NAME_HASH_RUN);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ANIMATION_NAME_HASH_CHARGE", _s_set_ANIMATION_NAME_HASH_CHARGE);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ANIMATION_NAME_HASH_CHARGE_LOOP", _s_set_ANIMATION_NAME_HASH_CHARGE_LOOP);
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "BF.BattleConst does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_LAYER_DEFAULT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.LAYER_DEFAULT);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_LAYER_HERO(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.LAYER_HERO);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_LAYER_MONSTER(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.LAYER_MONSTER);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_LAYER_ATK_BULLET(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.LAYER_ATK_BULLET);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_LAYER_DEF_BULLET(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.LAYER_DEF_BULLET);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_UnitMaterialPropertyBlock(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
translator.Push(L, BF.BattleConst.UnitMaterialPropertyBlock);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_UNIT_GLOW_COLOR_ID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.UNIT_GLOW_COLOR_ID);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_UNIT_GLOW_COLOR_ENABLE_ID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.UNIT_GLOW_COLOR_ENABLE_ID);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_COLOR_ICE(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
translator.PushUnityEngineColor(L, BF.BattleConst.COLOR_ICE);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_COLOR_STAGNATE(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
translator.PushUnityEngineColor(L, BF.BattleConst.COLOR_STAGNATE);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_COLOR_FEAR(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
translator.PushUnityEngineColor(L, BF.BattleConst.COLOR_FEAR);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MAP_TYPE_UNLIMITED(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.MAP_TYPE_UNLIMITED);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MAP_TYPE_PORTRAIT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.MAP_TYPE_PORTRAIT);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MAP_TYPE_SQUARE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.MAP_TYPE_SQUARE);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MAP_TYPE_SMALL_PORTRAIT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.MAP_TYPE_SMALL_PORTRAIT);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_MAP_TYPE_SMALL_SQUARE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.MAP_TYPE_SMALL_SQUARE);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ANIMATION_NAME_HASH_RUN(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.ANIMATION_NAME_HASH_RUN);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ANIMATION_NAME_HASH_CHARGE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.ANIMATION_NAME_HASH_CHARGE);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ANIMATION_NAME_HASH_CHARGE_LOOP(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, BF.BattleConst.ANIMATION_NAME_HASH_CHARGE_LOOP);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_LAYER_DEFAULT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.LAYER_DEFAULT = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_LAYER_HERO(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.LAYER_HERO = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_LAYER_MONSTER(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.LAYER_MONSTER = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_LAYER_ATK_BULLET(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.LAYER_ATK_BULLET = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_LAYER_DEF_BULLET(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.LAYER_DEF_BULLET = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_UnitMaterialPropertyBlock(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
BF.BattleConst.UnitMaterialPropertyBlock = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 1, typeof(UnityEngine.MaterialPropertyBlock));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_UNIT_GLOW_COLOR_ID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.UNIT_GLOW_COLOR_ID = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_UNIT_GLOW_COLOR_ENABLE_ID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.UNIT_GLOW_COLOR_ENABLE_ID = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_COLOR_ICE(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value);
|
|
BF.BattleConst.COLOR_ICE = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_COLOR_STAGNATE(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value);
|
|
BF.BattleConst.COLOR_STAGNATE = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_COLOR_FEAR(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
UnityEngine.Color gen_value;translator.Get(L, 1, out gen_value);
|
|
BF.BattleConst.COLOR_FEAR = gen_value;
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_MAP_TYPE_UNLIMITED(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.MAP_TYPE_UNLIMITED = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_MAP_TYPE_PORTRAIT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.MAP_TYPE_PORTRAIT = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_MAP_TYPE_SQUARE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.MAP_TYPE_SQUARE = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_MAP_TYPE_SMALL_PORTRAIT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.MAP_TYPE_SMALL_PORTRAIT = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_MAP_TYPE_SMALL_SQUARE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.MAP_TYPE_SMALL_SQUARE = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ANIMATION_NAME_HASH_RUN(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.ANIMATION_NAME_HASH_RUN = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ANIMATION_NAME_HASH_CHARGE(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.ANIMATION_NAME_HASH_CHARGE = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ANIMATION_NAME_HASH_CHARGE_LOOP(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
BF.BattleConst.ANIMATION_NAME_HASH_CHARGE_LOOP = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|