Пример #1
0
        //Swaps skin files and library info
        void swap(Skin s1, Skin s2)
        {
            int s1slot = s1.modelslot;
            int s2slot = s2.modelslot;

            //Moving origin files to temp
            s1.move(-1);
            //moving destination to origin slot
            s2.move(s1slot);
            //Moving origin to destination slot
            s1.move(s2slot);

            //Swapping in library
            Library.swap_skin(fullname, s1slot + 1, s2slot + 1);
        }