pub enum GameObjectKind {
Unit,
Turret,
Factory,
Unknown,
}Expand description
Each type has its own storage inside of a chunk, and cannot share a hex/tile with another of its own type (ex: two units cannot be on the same tile) Not exactly sure if this is useful anywhere
Variants§
Trait Implementations§
Source§impl Clone for GameObjectKind
impl Clone for GameObjectKind
Source§fn clone(&self) -> GameObjectKind
fn clone(&self) -> GameObjectKind
Returns a duplicate 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 Default for GameObjectKind
impl Default for GameObjectKind
Source§fn default() -> GameObjectKind
fn default() -> GameObjectKind
Returns the “default value” for a type. Read more
Source§impl Hash for GameObjectKind
impl Hash for GameObjectKind
Source§impl PartialEq for GameObjectKind
impl PartialEq for GameObjectKind
Source§impl Serialize for GameObjectKind
impl Serialize for GameObjectKind
impl Copy for GameObjectKind
impl Eq for GameObjectKind
impl StructuralPartialEq for GameObjectKind
Auto Trait Implementations§
impl Freeze for GameObjectKind
impl RefUnwindSafe for GameObjectKind
impl Send for GameObjectKind
impl Sync for GameObjectKind
impl Unpin for GameObjectKind
impl UnwindSafe for GameObjectKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.