Sphere.Core.Spriteset.RemoveFrameReference C# (CSharp) Method

RemoveFrameReference() public method

Removes the frame from the spriteset and its image array.
public RemoveFrameReference ( int reference ) : void
reference int
return void
        public void RemoveFrameReference(int reference)
        {
            foreach (Direction d in _directions)
            {
                foreach (Frame f in d.Frames)
                {
                    if (f.Index == reference) f.Index = 0;
                    if (f.Index > reference) f.Index--;
                }
            }
            _images.RemoveAt(reference);
        }