示例#1
0
    static int set_ItemID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyDragAndDrop obj  = (MyDragAndDrop)o;
            int           arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.ItemID = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ItemID on a nil value"));
        }
    }
示例#2
0
    static int get_ItemID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyDragAndDrop obj = (MyDragAndDrop)o;
            int           ret = obj.ItemID;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ItemID on a nil value"));
        }
    }
示例#3
0
    static int set_CanDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyDragAndDrop obj  = (MyDragAndDrop)o;
            bool          arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.CanDrag = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CanDrag on a nil value"));
        }
    }
示例#4
0
    static int get_CanDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MyDragAndDrop obj = (MyDragAndDrop)o;
            bool          ret = obj.CanDrag;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CanDrag on a nil value"));
        }
    }