1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 07:26:09 +00:00

Début ajout sembast

This commit is contained in:
Yan Maniez 2020-03-22 20:36:08 +01:00
parent f93587c745
commit 2d826d5248
8 changed files with 305 additions and 159 deletions

View file

@ -0,0 +1,18 @@
import 'package:aidedejeu_flutter/models/filters.dart';
import 'package:aidedejeu_flutter/models/items.dart';
abstract class BaseDB {
Future<Item> getItemWithId(String id);
Future<Item> loadChildrenItems(Item item, List<Filter> filters);
Future<List<RaceItem>> loadRaces();
Future<List<SubRaceItem>> loadSubRaces(RaceItem race);
Future<List<T>> loadTypedItems<T extends Item>({String itemType, Item item});
Future<List<BackgroundItem>> loadBackgrounds();
Future<List<SubBackgroundItem>> loadSubBackgrounds(Item item);
}