Пример #1
0
        public DatabaseManager()
        {
            Connection = new SQLiteConnection("Data Source=..\\..\\..\\ConquerDatabase.db;Version=3");
            Connection.Open();

            CharacterCtrl = new CharacterDataCtrl(Connection);
            LocationCtrl  = new LocationDataCtrl(Connection);
            EquipmentCtrl = new EquipmentCtrl(Connection);
            ItemTypeCtrl  = new ItemTypeCtrl(Connection);
            NpcSpawnCtrl  = new NpcSpawnCtrl(Connection);
            ItemCtrl      = new ItemsCtrl(Connection);
            SpellCtrl     = new SpellDataCtrl(Connection);
            ProfiencyCtrl = new ProfiencyCtrl(Connection);

            NpcSpawnCtrl.Load();
        }
Пример #2
0
        public DatabaseManager()
        {
            Connection = new SQLiteConnection("Data Source=..\\..\\..\\ConquerDatabase.db;Version=3");
            Connection.Open();

            CharacterCtrl = new CharacterDataCtrl(Connection);
            LocationCtrl = new LocationDataCtrl(Connection);
            EquipmentCtrl = new EquipmentCtrl(Connection);
            ItemTypeCtrl = new ItemTypeCtrl(Connection);
            NpcSpawnCtrl = new NpcSpawnCtrl(Connection);
            ItemCtrl = new ItemsCtrl(Connection);
            SpellCtrl = new SpellDataCtrl(Connection);
            ProfiencyCtrl = new ProfiencyCtrl(Connection);

            NpcSpawnCtrl.Load();
        }