pub struct Animation { /* private fields */ }Expand description
Represents an ongoing animation
Use it to request an animation and poll for a reply.
Implementations§
source§impl Animation
impl Animation
sourcepub fn enqueue_request_in_global_queue(request: &AnimationRequest) -> Self
pub fn enqueue_request_in_global_queue(request: &AnimationRequest) -> Self
Request an animation
Will put it in the global queue to be executed later
when running EntityMessenger::get().process_events()
sourcepub fn enqueue_request(
request: &AnimationRequest,
queue: &mut EntityMessageQueue
) -> Self
pub fn enqueue_request( request: &AnimationRequest, queue: &mut EntityMessageQueue ) -> Self
Request an animation
Will put it in a queue of your choice to be executed on request.
sourcepub fn result(&self) -> MessageResponse<&AnimationReplyType>
pub fn result(&self) -> MessageResponse<&AnimationReplyType>
Query the state of this animation.