Example #1
0
    static int set_Equips(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            int[] arg0 = ToLua.CheckNumberArray <int>(L, 2);
            obj.Equips = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Equips on a nil value" : e.Message));
        }
    }
Example #2
0
    static int get_SkinId(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            string ret = obj.SkinId;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index SkinId on a nil value" : e.Message));
        }
    }
Example #3
0
    static int set_MDef(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.MDef = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index MDef on a nil value" : e.Message));
        }
    }
Example #4
0
    static int set_PlayerName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.PlayerName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PlayerName on a nil value" : e.Message));
        }
    }
Example #5
0
    static int get_Equips(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            int[] ret = obj.Equips;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Equips on a nil value" : e.Message));
        }
    }
Example #6
0
    static int get_MDef(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NTGBattleUIController.UIBattleInfoItem obj = (NTGBattleUIController.UIBattleInfoItem)o;
            int ret = obj.MDef;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index MDef on a nil value" : e.Message));
        }
    }
Example #7
0
    static int _CreateNTGBattleUIController_UIBattleInfoItem(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

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