LifeSim / src /app /agents /index.ts
jbilcke-hf's picture
jbilcke-hf HF staff
improvements
68cf43c
raw
history blame contribute delete
495 Bytes
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"
import { agent as city } from "./city"
import { agent as dungeon } from "./dungeon"
export const agents = { ant, fish, fox, smith, city, dungeon }
export const defaultAgent: AgentType = "dungeon"
export const getAgent = (type?: AgentType) => agents[type || defaultAgent] || agents[defaultAgent]