pub struct EntityActionsQueue { /* private fields */ }Implementations§
Source§impl EntityActionsQueue
impl EntityActionsQueue
pub fn new(entity_id: EntityId) -> Self
pub fn push(&mut self, action_with_deadline: &ActionWithDeadline)
pub fn append_start_cast_ability_result_actions( &mut self, actions_with_deadlines: &Vec<ActionWithDeadline>, current_tick: u64, ability_id: AbilityId, ability_cooldown: u64, )
pub fn pop(&mut self, current_tick: u64) -> Option<EntityAction>
pub fn remove_start_cast_ability_action( &mut self, ability_id_to_remove: AbilityId, )
pub fn remove_cast_effect_action(&mut self, effect_id_to_remove: EffectId)
pub fn get_closest_start_cast_action_deadline(&self) -> Option<u64>
pub fn view(&self) -> HashMap<ActionPriority, Vec<ActionWithDeadline>>
Trait Implementations§
Source§impl Clone for EntityActionsQueue
impl Clone for EntityActionsQueue
Source§fn clone(&self) -> EntityActionsQueue
fn clone(&self) -> EntityActionsQueue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityActionsQueue
impl Debug for EntityActionsQueue
Source§impl Default for EntityActionsQueue
impl Default for EntityActionsQueue
Source§fn default() -> EntityActionsQueue
fn default() -> EntityActionsQueue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntityActionsQueue
impl<'de> Deserialize<'de> for EntityActionsQueue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntityActionsQueue
impl PartialEq for EntityActionsQueue
Source§impl Serialize for EntityActionsQueue
impl Serialize for EntityActionsQueue
impl Eq for EntityActionsQueue
impl StructuralPartialEq for EntityActionsQueue
Auto Trait Implementations§
impl Freeze for EntityActionsQueue
impl RefUnwindSafe for EntityActionsQueue
impl Send for EntityActionsQueue
impl Sync for EntityActionsQueue
impl Unpin for EntityActionsQueue
impl UnwindSafe for EntityActionsQueue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more