Beispiel #1
0
        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

                );
        }
Beispiel #2
0
        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

                );
        }
Beispiel #3
0
        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

                );
        }
Beispiel #4
0
 public ImmutableBuilder(MemoryDatabase memory)
 {
     this.memory = memory;
 }