Exemplo n.º 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();
        }
Exemplo n.º 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();
        }