Пример #1
0
    static int set_Enemy(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData         obj  = (NTGBattleUIController.BattleUpdateData)o;
            NTGBattleUIController.BattleUpdatePlayerData[] arg0 = ToLua.CheckObjectArray <NTGBattleUIController.BattleUpdatePlayerData>(L, 2);
            obj.Enemy = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Enemy on a nil value" : e.Message));
        }
    }
Пример #2
0
    static int get_FPS(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            string ret = obj.FPS;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index FPS on a nil value" : e.Message));
        }
    }
Пример #3
0
    static int set_TargetMDef(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.TargetMDef = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TargetMDef on a nil value" : e.Message));
        }
    }
Пример #4
0
    static int set_Player(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            NTGBattlePlayerController arg0             = (NTGBattlePlayerController)ToLua.CheckUnityObject(L, 2, typeof(NTGBattlePlayerController));
            obj.Player = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Player on a nil value" : e.Message));
        }
    }
Пример #5
0
    static int set_TargetIcon(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.TargetIcon = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TargetIcon on a nil value" : e.Message));
        }
    }
Пример #6
0
    static int set_TargetActive(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.TargetActive = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TargetActive on a nil value" : e.Message));
        }
    }
Пример #7
0
    static int get_Enemy(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData         obj = (NTGBattleUIController.BattleUpdateData)o;
            NTGBattleUIController.BattleUpdatePlayerData[] ret = obj.Enemy;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Enemy on a nil value" : e.Message));
        }
    }
Пример #8
0
    static int get_TargetMDef(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.BattleUpdateData obj = (NTGBattleUIController.BattleUpdateData)o;
            float ret = obj.TargetMDef;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index TargetMDef on a nil value" : e.Message));
        }
    }
Пример #9
0
    static int _CreateNTGBattleUIController_BattleUpdateData(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                NTGBattleUIController.BattleUpdateData obj = new NTGBattleUIController.BattleUpdateData();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: NTGBattleUIController.BattleUpdateData.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }