2025-11-16 11:50:49 +00:00
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
2025-11-15 23:42:12 +00:00
|
|
|
use bevy::prelude::*;
|
|
|
|
|
use parking_lot::Mutex;
|
|
|
|
|
use rusqlite::Connection;
|
|
|
|
|
|
|
|
|
|
use crate::config::Config;
|
|
|
|
|
|
|
|
|
|
/// Bevy resource wrapping application configuration
|
|
|
|
|
#[derive(Resource)]
|
|
|
|
|
pub struct AppConfig(pub Config);
|
|
|
|
|
|
|
|
|
|
/// Bevy resource wrapping database connection
|
|
|
|
|
#[derive(Resource)]
|
|
|
|
|
pub struct Database(pub Arc<Mutex<Connection>>);
|