public void ReplaceAll(System.Collections.Generic.IList <EnumKeyTable> data) { var newData = CloneAndSortBy(data, x => x.Gender, System.Collections.Generic.Comparer <Gender> .Default); var table = new EnumKeyTableTable(newData); memory = new MemoryDatabase( table, memory.ItemTable, memory.MonsterTable, memory.PersonTable, memory.QuestTable, memory.Test1Table, memory.Test2Table ); }
public void Diff(EnumKeyTable[] addOrReplaceData) { var data = DiffCore(memory.EnumKeyTableTable.GetRawDataUnsafe(), addOrReplaceData, x => x.Gender, System.Collections.Generic.Comparer <Gender> .Default); var newData = CloneAndSortBy(data, x => x.Gender, System.Collections.Generic.Comparer <Gender> .Default); var table = new EnumKeyTableTable(newData); memory = new MemoryDatabase( table, memory.ItemTable, memory.MonsterTable, memory.PersonTable, memory.QuestTable, memory.Test1Table, memory.Test2Table ); }
public void RemoveEnumKeyTable(Gender[] keys) { var data = RemoveCore(memory.EnumKeyTableTable.GetRawDataUnsafe(), keys, x => x.Gender, System.Collections.Generic.Comparer <Gender> .Default); var newData = CloneAndSortBy(data, x => x.Gender, System.Collections.Generic.Comparer <Gender> .Default); var table = new EnumKeyTableTable(newData); memory = new MemoryDatabase( table, memory.ItemTable, memory.MonsterTable, memory.PersonTable, memory.QuestTable, memory.Test1Table, memory.Test2Table ); }
public MemoryDatabase( EnumKeyTableTable EnumKeyTableTable, ItemTable ItemTable, MonsterTable MonsterTable, PersonTable PersonTable, QuestTable QuestTable, Test1Table Test1Table, Test2Table Test2Table ) { this.EnumKeyTableTable = EnumKeyTableTable; this.ItemTable = ItemTable; this.MonsterTable = MonsterTable; this.PersonTable = PersonTable; this.QuestTable = QuestTable; this.Test1Table = Test1Table; this.Test2Table = Test2Table; }