Skip to main content

agent_attributes

Function agent_attributes 

Source
pub fn agent_attributes(
    tables: &StartposTables,
    agent: &str,
) -> Result<[i64; 3]>
Expand description

Returns the starting attributes of an agent type, in ATTRIBUTES order (agent_to_agent_attributes, 0 when the agent has no row for an attribute).

§Arguments

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

§Errors

Returns an error if a table or column is missing.