mirror of
https://github.com/araxiaonline/WoWDBDefs.git
synced 2026-06-13 11:42:48 -04:00
26 lines
762 B
C#
26 lines
762 B
C#
using DBDefsLib;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using static DBDefsLib.Structs;
|
|
|
|
namespace DBDefsTest
|
|
{
|
|
class Program
|
|
{
|
|
public static Dictionary<string, DBDefinition> definitionCache = new Dictionary<string, DBDefinition>();
|
|
|
|
static void Main(string[] args)
|
|
{
|
|
foreach (var file in Directory.GetFiles("../../../definitions/"))
|
|
{
|
|
var reader = new DBDReader();
|
|
Console.WriteLine(Path.GetFileNameWithoutExtension(file));
|
|
definitionCache.Add(Path.GetFileNameWithoutExtension(file), reader.Read(file));
|
|
}
|
|
Console.WriteLine("Done, press enter to exit");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|