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:
funman300
2026-05-27 16:58:42 -07:00
parent 3885b334ec
commit 86bafdd679
4 changed files with 43 additions and 0 deletions
+11
View File
@@ -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;