Skip to main content

agent_abilities

Function agent_abilities 

Source
pub fn agent_abilities(
    tables: &StartposTables,
    agent: &str,
) -> Result<[bool; 9]>
Expand description

Returns which abilities an agent type has, in ABILITIES order (agent_to_agent_abilities).

§Arguments

  • tables - Tables with agent_to_agent_abilities.
  • agent - Agent type.

§Errors

Returns an error if a table or column is missing.