Beispiel #1
0
        public void TestEncryptedInfo()
        {
            var githubDBDProvider = new GithubDBDProvider();
            var dbcProvider       = new TestDBCProvider(Directory.GetCurrentDirectory());

            DBCD dbcd = new DBCD(dbcProvider, githubDBDProvider);

            var storage = dbcd.Load("SpellName");

            foreach (var section in storage.GetEncryptedSections())
            {
                System.Console.WriteLine($"Found encrypted secttion encrypted with key {section.Key} containing {section.Value} rows");
            }
        }
Beispiel #2
0
        public void TestHotfixApplying()
        {
            DBCD dbcd = new DBCD(dbcProvider, githubDBDProvider);

            var storage = dbcd.Load("ItemSparse");
            var hotfix  = new HotfixReader("hotfix.bin");

            var countBefore = storage.Count;

            storage = storage.ApplyingHotfixes(hotfix);

            var countAfter = storage.Count;

            System.Console.WriteLine($"B: {countBefore} => A: {countAfter}");
        }