示例#1
0
 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;
 }
示例#2
0
 public MemoryDatabase(
     SampleTable SampleTable,
     SkillMasterTable SkillMasterTable,
     UserLevelTable UserLevelTable
     )
 {
     this.SampleTable      = SampleTable;
     this.SkillMasterTable = SkillMasterTable;
     this.UserLevelTable   = UserLevelTable;
 }
        public void ReplaceAll(System.Collections.Generic.IList <SkillMaster> data)
        {
            var newData = CloneAndSortBy(data, x => (x.SkillId, x.SkillLevel), System.Collections.Generic.Comparer <(int SkillId, int SkillLevel)> .Default);
            var table   = new SkillMasterTable(newData);

            memory = new MemoryDatabase(
                memory.SampleTable,
                table,
                memory.UserLevelTable

                );
        }
示例#4
0
        public void ReplaceAll(System.Collections.Generic.IList <SkillMaster> data)
        {
            var newData = CloneAndSortBy(data, x => (x.SkillId, x.SkillLevel), System.Collections.Generic.Comparer <(int SkillId, int SkillLevel)> .Default);
            var table   = new SkillMasterTable(newData);

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

                );
        }