예제 #1
0
    static int setIconFrame(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UI_Equip_Item), typeof(string)))
            {
                UI_Equip_Item obj  = (UI_Equip_Item)ToLua.ToObject(L, 1);
                string        arg0 = ToLua.ToString(L, 2);
                obj.setIconFrame(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UI_Equip_Item), typeof(UIAtlas), typeof(string)))
            {
                UI_Equip_Item obj  = (UI_Equip_Item)ToLua.ToObject(L, 1);
                UIAtlas       arg0 = (UIAtlas)ToLua.ToObject(L, 2);
                string        arg1 = ToLua.ToString(L, 3);
                obj.setIconFrame(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UI_Equip_Item.setIconFrame"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #2
0
 static int setEmpty(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UI_Equip_Item obj = (UI_Equip_Item)ToLua.CheckObject(L, 1, typeof(UI_Equip_Item));
         obj.setEmpty();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int setIconSelectFrame(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI_Equip_Item obj  = (UI_Equip_Item)ToLua.CheckObject(L, 1, typeof(UI_Equip_Item));
         string        arg0 = ToLua.CheckString(L, 2);
         obj.setIconSelectFrame(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
 static int setEquipmentLock(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI_Equip_Item obj  = (UI_Equip_Item)ToLua.CheckObject(L, 1, typeof(UI_Equip_Item));
         bool          arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.setEquipmentLock(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #5
0
 static int setEquipmentLevel(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI_Equip_Item obj  = (UI_Equip_Item)ToLua.CheckObject(L, 1, typeof(UI_Equip_Item));
         int           arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.setEquipmentLevel(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #6
0
    static int set_cEquipment(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item          obj  = (UI_Equip_Item)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.cEquipment = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cEquipment on a nil value" : e.Message));
        }
    }
예제 #7
0
    static int set_sLocked(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj  = (UI_Equip_Item)o;
            UISprite      arg0 = (UISprite)ToLua.CheckUnityObject(L, 2, typeof(UISprite));
            obj.sLocked = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sLocked on a nil value" : e.Message));
        }
    }
예제 #8
0
    static int set_tEquipmentLevel(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj  = (UI_Equip_Item)o;
            UILabel       arg0 = (UILabel)ToLua.CheckUnityObject(L, 2, typeof(UILabel));
            obj.tEquipmentLevel = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tEquipmentLevel on a nil value" : e.Message));
        }
    }
예제 #9
0
    static int set__EquipID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj  = (UI_Equip_Item)o;
            int           arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj._EquipID = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _EquipID on a nil value" : e.Message));
        }
    }
예제 #10
0
    static int get_cEquipment(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item          obj = (UI_Equip_Item)o;
            UnityEngine.GameObject ret = obj.cEquipment;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cEquipment on a nil value" : e.Message));
        }
    }
예제 #11
0
    static int get_sLocked(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj = (UI_Equip_Item)o;
            UISprite      ret = obj.sLocked;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sLocked on a nil value" : e.Message));
        }
    }
예제 #12
0
    static int get_tEquipmentLevel(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj = (UI_Equip_Item)o;
            UILabel       ret = obj.tEquipmentLevel;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tEquipmentLevel on a nil value" : e.Message));
        }
    }
예제 #13
0
    static int get__EquipID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI_Equip_Item obj = (UI_Equip_Item)o;
            int           ret = obj._EquipID;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index _EquipID on a nil value" : e.Message));
        }
    }