[−][src]Struct timberwolf::App
represents a game as collection of subsystems
Fields
services: Arc<ServiceLocator>
service locator for accessing common game service
Implementations
impl App
[src]
pub fn new() -> Self
[src]
create a new game
pub fn get_state(&self) -> &GlobalState
[src]
get access to the game's state object
pub fn get_services(&self) -> &ServiceLocator
[src]
get access to the game's service locator
pub fn run(
&self,
context: Box<dyn Context + Send + Sync>,
frames_per_second: u32,
ticks_per_second: u32
)
[src]
&self,
context: Box<dyn Context + Send + Sync>,
frames_per_second: u32,
ticks_per_second: u32
)
run the game!
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for App
[src]
impl Send for App
[src]
impl Sync for App
[src]
impl Unpin for App
[src]
impl UnwindSafe for App
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,