Struct feo_oop_engine::scripting::Script
source · [−]pub struct Script<T> where
T: ?Sized + Send + 'static, {
pub has_started: bool,
pub globals: Option<Box<dyn Global>>,
pub start: BoxedStartFn<T>,
pub frame: BoxedFrameFn<T>,
pub event_handler: Option<BoxedEventHandlerFn<T>>,
}Fields
has_started: boolglobals: Option<Box<dyn Global>>start: BoxedStartFn<T>frame: BoxedFrameFn<T>event_handler: Option<BoxedEventHandlerFn<T>>Implementations
pub fn new_boxed(
start: BoxedStartFn<T>,
frame: BoxedFrameFn<T>,
event_handler: Option<BoxedEventHandlerFn<T>>
) -> Box<Script<T>>
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Script<T>
impl<T> !UnwindSafe for Script<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.