public void ReplaceAll(System.Collections.Generic.IList <Skill> data) { var newData = CloneAndSortBy(data, x => x.SkillID, System.Collections.Generic.Comparer <int> .Default); var table = new SkillTable(newData); memory = new MemoryDatabase( memory.PersonTable, table, memory.SkillParameterTable ); }
public void Diff(Skill[] addOrReplaceData) { var data = DiffCore(memory.SkillTable.GetRawDataUnsafe(), addOrReplaceData, x => x.SkillID, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.SkillID, System.Collections.Generic.Comparer <int> .Default); var table = new SkillTable(newData); memory = new MemoryDatabase( memory.PersonTable, table, memory.SkillParameterTable ); }
public void RemoveSkill(int[] keys) { var data = RemoveCore(memory.SkillTable.GetRawDataUnsafe(), keys, x => x.SkillID, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.SkillID, System.Collections.Generic.Comparer <int> .Default); var table = new SkillTable(newData); memory = new MemoryDatabase( memory.PersonTable, table, memory.SkillParameterTable ); }
public ImmutableBuilder(MemoryDatabase memory) { this.memory = memory; }