File size: 393 Bytes
da798b4 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { Agent, AgentType } from "./types"
import { agent as ant } from "./ant"
import { agent as fish } from "./fish"
import { agent as fox } from "./fox"
import { agent as smith } from "./smith"
export const agents = { ant, fish, fox, smith }
export const defaultAgent: AgentType = "fish"
export const getAgent = (type?: AgentType) => agents[type || defaultAgent] || agents[defaultAgent] |