public override void Apply() { Project.Characters[CharIndex].Data = new GR.Memory.ByteBuffer(Char.Data); Project.Characters[CharIndex].Color = Char.Color; Project.Characters[CharIndex].Category = Char.Category; Project.Characters[CharIndex].Index = Char.Index; Project.Characters[CharIndex].Mode = Char.Mode; Editor.CharacterChanged(CharIndex); }
public override void Apply() { for (int i = 0; i < CharCount; ++i) { var charData = Chars[i]; Project.Characters[CharIndex + i].Tile.Data = new GR.Memory.ByteBuffer(charData.Tile.Data); Project.Characters[CharIndex + i].Tile.CustomColor = charData.Tile.CustomColor; Project.Characters[CharIndex + i].Category = charData.Category; Project.Characters[CharIndex + i].Index = charData.Index; } Editor.CharacterChanged(CharIndex, CharCount); }