public MemoryDatabase( PersonModelTable PersonModelTable, QuestMasterTable QuestMasterTable, ItemMasterTable ItemMasterTable, QuestMasterEmptyValidateTable QuestMasterEmptyValidateTable, ItemMasterEmptyValidateTable ItemMasterEmptyValidateTable, SequentialCheckMasterTable SequentialCheckMasterTable, SingleMasterTable SingleMasterTable, FailTable FailTable, SampleTable SampleTable, SkillMasterTable SkillMasterTable, TestMasterTable TestMasterTable, UserLevelTable UserLevelTable ) { this.PersonModelTable = PersonModelTable; this.QuestMasterTable = QuestMasterTable; this.ItemMasterTable = ItemMasterTable; this.QuestMasterEmptyValidateTable = QuestMasterEmptyValidateTable; this.ItemMasterEmptyValidateTable = ItemMasterEmptyValidateTable; this.SequentialCheckMasterTable = SequentialCheckMasterTable; this.SingleMasterTable = SingleMasterTable; this.FailTable = FailTable; this.SampleTable = SampleTable; this.SkillMasterTable = SkillMasterTable; this.TestMasterTable = TestMasterTable; this.UserLevelTable = UserLevelTable; }
public void ReplaceAll(System.Collections.Generic.IList <QuestMaster> data) { var newData = CloneAndSortBy(data, x => x.QuestId, System.Collections.Generic.Comparer <int> .Default); var table = new QuestMasterTable(newData); memory = new MemoryDatabase( table, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, memory.SequentialCheckMasterTable, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }
public void Diff(QuestMaster[] addOrReplaceData) { var data = DiffCore(memory.QuestMasterTable.GetRawDataUnsafe(), addOrReplaceData, x => x.QuestId, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.QuestId, System.Collections.Generic.Comparer <int> .Default); var table = new QuestMasterTable(newData); memory = new MemoryDatabase( table, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, memory.SequentialCheckMasterTable, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }
public void RemoveQuestMaster(int[] keys) { var data = RemoveCore(memory.QuestMasterTable.GetRawDataUnsafe(), keys, x => x.QuestId, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.QuestId, System.Collections.Generic.Comparer <int> .Default); var table = new QuestMasterTable(newData); memory = new MemoryDatabase( memory.PersonModelTable, table, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, memory.SequentialCheckMasterTable, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }