Struct landmass::Archipelago
source · pub struct Archipelago {
pub agent_options: AgentOptions,
/* private fields */
}
Fields§
§agent_options: AgentOptions
Implementations§
source§impl Archipelago
impl Archipelago
pub fn new() -> Self
pub fn add_agent(&mut self, agent: Agent) -> AgentId
pub fn remove_agent(&mut self, agent_id: AgentId)
pub fn get_agent(&self, agent_id: AgentId) -> &Agent
pub fn get_agent_mut(&mut self, agent_id: AgentId) -> &mut Agent
pub fn get_agent_ids(&self) -> impl ExactSizeIterator<Item = AgentId> + '_
pub fn add_island(&mut self) -> IslandId
pub fn remove_island(&mut self, island_id: IslandId)
pub fn get_island(&self, island_id: IslandId) -> &Island
pub fn get_island_mut(&mut self, island_id: IslandId) -> &mut Island
pub fn get_island_ids(&self) -> impl ExactSizeIterator<Item = IslandId> + '_
pub fn update(&mut self, delta_time: f32)
Auto Trait Implementations§
impl RefUnwindSafe for Archipelago
impl Send for Archipelago
impl Sync for Archipelago
impl Unpin for Archipelago
impl UnwindSafe for Archipelago
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