46 lines
1.5 KiB
C++
46 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include <SQLiteCpp/SQLiteCpp.h>
|
|
|
|
#include "configs/achievements.h"
|
|
#include "configs/harvestables.h"
|
|
#include "configs/items.h"
|
|
#include "configs/loot.h"
|
|
#include "configs/npcs.h"
|
|
#include "configs/shops.h"
|
|
|
|
namespace cursebreaker {
|
|
|
|
// Items
|
|
void CreateItemTables(SQLite::Database& db);
|
|
void PopulateItemEntry(SQLite::Database& db, const Item& item);
|
|
void PopulateItemDB(SQLite::Database& db, const std::vector<Item>& items);
|
|
|
|
// Achievements
|
|
void CreateAchievementTables(SQLite::Database& db);
|
|
void PopulateAchievementEntry(SQLite::Database& db, const Achievement& achievement);
|
|
void PopulateAchievementDB(SQLite::Database& db, const std::vector<Achievement>& achievements);
|
|
|
|
// Harvestables
|
|
void CreateHarvestableTables(SQLite::Database& db);
|
|
void PopulateHarvestableEntry(SQLite::Database& db, const Harvestable& harvestable);
|
|
void PopulateHarvestableDB(SQLite::Database& db, const std::vector<Harvestable>& harvestables);
|
|
|
|
// Loot
|
|
void CreateLootTables(SQLite::Database& db);
|
|
void PopulateLootTableEntry(SQLite::Database& db, const LootTable& lootTable);
|
|
void PopulateLootDB(SQLite::Database& db, const std::vector<LootTable>& lootTables);
|
|
|
|
// NPCs
|
|
void CreateNPCTables(SQLite::Database& db);
|
|
void PopulateNPCEntry(SQLite::Database& db, const NPC& npc);
|
|
void PopulateNPCDB(SQLite::Database& db, const std::vector<NPC>& npcs);
|
|
|
|
// Shops
|
|
void CreateShopTables(SQLite::Database& db);
|
|
void PopulateShopEntry(SQLite::Database& db, const Shop& shop);
|
|
void PopulateShopDB(SQLite::Database& db, const std::vector<Shop>& shops);
|
|
|
|
} // namespace cursebreaker
|