feat(engine): add platform abstraction trait skeleton (closes #47)
Adds solitaire_engine::platform::{StorageBackend, PlatformTime} traits.
No implementations yet — native and WASM impls follow in #48.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//! Platform abstraction layer.
|
||||
//!
|
||||
//! Traits defined here are implemented by:
|
||||
//! - `solitaire_data` for native targets (filesystem, `std::time`)
|
||||
//! - future WASM-specific impls for browser targets (`localStorage`, `js_sys::Date`)
|
||||
|
||||
pub mod storage;
|
||||
pub mod time;
|
||||
|
||||
pub use storage::StorageBackend;
|
||||
pub use time::PlatformTime;
|
||||
Reference in New Issue
Block a user