| 23 | { |
| 24 | |
| 25 | template <> sp<AgentType> StateObject<AgentType>::get(const GameState &state, const UString &id) |
| 26 | { |
| 27 | auto it = state.agent_types.find(id); |
| 28 | if (it == state.agent_types.end()) |
| 29 | { |
| 30 | LogError("No agent_type matching ID \"%s\"", id); |
| 31 | return nullptr; |
| 32 | } |
| 33 | return it->second; |
| 34 | } |
| 35 | |
| 36 | template <> const UString &StateObject<AgentType>::getPrefix() |
| 37 | { |