Easy Unit Linking and AttachingComment: 'Set the last unused index to ...'
Set the last unused index to the current index
Comment: 'If not add it to the array of...'
If not add it to the array of recycled indexes and modify variables accordingly
Comment: 'Main loop, looping trough all...'
Main loop, looping trough all indexes from top to bottom
Comment: 'Check if the unit using curre...'
Check if the unit using current index has been removed
Comment: 'Adjust variables so index no ...'
Adjust variables so index no longer appears in the recycled indexes list
Comment: 'Pushing all other values down...'
Pushing all other values down to fill the empty recycled index place
Comment: 'Check if the current index is...'
Check if the current index is the one right before the current last free index
Comment: 'Check if the current index ha...'
Check if the current index has already been recycled
Comment: 'Check if the index has been r...'
Check if the index has been recycled
Periodic RecycleAuto IndexDeIndex UnitUnit IndexUnit With IndexIndex Unit1000false00true0.00010010false001010true10.0false1.00.015.01.01.00false11001WhichUnitWhichUnitWhichIndexWhichUnitnumberRecycledIndexesNumber Recycled IndexesisIndexRecycledIsIndexRecycledunitUnitSortCounterrecycledIndexRecycled IndexlastUnusedIndexLast Unused IndexCurrentIndexrecycledIndexPositionRecycledIndexPosition