bones_input/lib.rs
1//! Standardized types meant to be provided to Bones games from the outside environment.
2
3#![warn(missing_docs)]
4// This cfg_attr is needed because `rustdoc::all` includes lints not supported on stable
5#![cfg_attr(doc, allow(unknown_lints))]
6#![deny(rustdoc::all)]
7
8use type_ulid::TypeUlid;
9
10pub mod time;
11
12/// The prelude.
13pub mod prelude {
14 pub use crate::*;
15 pub use time::*;
16}
17
18/// Information about the window the game is running in.
19#[derive(Clone, Copy, Debug, Default, TypeUlid)]
20#[ulid = "01GP70WMVH4HV4YHZ240E0YC7X"]
21pub struct Window {
22 /// The logical size of the window's client area.
23 pub size: glam::Vec2,
24}