public void Initialize() { if (Directory.Exists(@"Data\DBC")) { DBC.Spell = DBCReader.ReadDBC <SpellEntry>(DBC.SpellStrings); DBC.SkillLine = DBCReader.ReadDBC <SkillLineEntry>(DBC.SkillLineStrings); DBC.SpellRange = DBCReader.ReadDBC <SpellRangeEntry>(DBC.SpellRangeStrings); DBC.SpellDuration = DBCReader.ReadDBC <SpellDurationEntry>(null); DBC.SkillLineAbility = DBCReader.ReadDBC <SkillLineAbilityEntry>(null); DBC.SpellRadius = DBCReader.ReadDBC <SpellRadiusEntry>(null); DBC.SpellCastTimes = DBCReader.ReadDBC <SpellCastTimesEntry>(null); Logging.Write(string.Format("Loaded {0} Spells from DBC", DBC.Spell.Count)); Logging.Write(string.Format("Loaded {0} SkillLines from DBC", DBC.SkillLine.Count)); Logging.Write(string.Format("Loaded {0} SpellRanges from DBC", DBC.SpellRange.Count)); Logging.Write(string.Format("Loaded {0} SpellDurations from DBC", DBC.SpellDuration.Count)); Logging.Write(string.Format("Loaded {0} SkillLineAbilitys from DBC", DBC.SkillLineAbility.Count)); Logging.Write(string.Format("Loaded {0} SpellRadiuss from DBC", DBC.SpellRadius.Count)); Logging.Write(string.Format("Loaded {0} SpellCastTimes from DBC", DBC.SpellCastTimes.Count)); } else { Logging.WriteError("DBC Folder doesn't exist!"); } DataMgr.Init(); engine = new Engine(false); engine.States.Add(new CombatState { Priority = int.MaxValue }); engine.States.Sort(); engine.StartEngine(10, "Carlcombat", true); }