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;
 }
Beispiel #2
0
        public void ReplaceAll(System.Collections.Generic.IList <Fail> data)
        {
            var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default);
            var table   = new FailTable(newData);

            memory = new MemoryDatabase(
                memory.QuestMasterTable,
                memory.ItemMasterTable,
                memory.QuestMasterEmptyValidateTable,
                memory.ItemMasterEmptyValidateTable,
                memory.SequentialCheckMasterTable,
                memory.SingleMasterTable,
                table,
                memory.SampleTable,
                memory.SkillMasterTable,
                memory.TestMasterTable,
                memory.UserLevelTable

                );
        }
Beispiel #3
0
        public void Diff(Fail[] addOrReplaceData)
        {
            var data    = DiffCore(memory.FailTable.GetRawDataUnsafe(), addOrReplaceData, x => x.Id, System.Collections.Generic.Comparer <int> .Default);
            var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default);
            var table   = new FailTable(newData);

            memory = new MemoryDatabase(
                memory.QuestMasterTable,
                memory.ItemMasterTable,
                memory.QuestMasterEmptyValidateTable,
                memory.ItemMasterEmptyValidateTable,
                memory.SequentialCheckMasterTable,
                memory.SingleMasterTable,
                table,
                memory.SampleTable,
                memory.SkillMasterTable,
                memory.TestMasterTable,
                memory.UserLevelTable

                );
        }
        public void RemoveFail(int[] keys)
        {
            var data    = RemoveCore(memory.FailTable.GetRawDataUnsafe(), keys, x => x.Id, System.Collections.Generic.Comparer <int> .Default);
            var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default);
            var table   = new FailTable(newData);

            memory = new MemoryDatabase(
                memory.PersonModelTable,
                memory.QuestMasterTable,
                memory.ItemMasterTable,
                memory.QuestMasterEmptyValidateTable,
                memory.ItemMasterEmptyValidateTable,
                memory.SequentialCheckMasterTable,
                memory.SingleMasterTable,
                table,
                memory.SampleTable,
                memory.SkillMasterTable,
                memory.TestMasterTable,
                memory.UserLevelTable

                );
        }