FSO.Files.Formats.IFF.Chunks.SPR2Frame.SetPalt C# (CSharp) Method

SetPalt() public method

public SetPalt ( PALT p ) : void
p PALT
return void
        public void SetPalt(PALT p)
        {
            if (this.PaletteID != 0)
            {
                var old = Parent.ChunkParent.Get<PALT>(this.PaletteID);
                if (old != null) old.References--;
            }
            PaletteID = p.ChunkID;
            p.References++;
        }