| 21 | |
| 22 | template <> |
| 23 | sp<AEquipmentType> StateObject<AEquipmentType>::get(const GameState &state, const UString &id) |
| 24 | { |
| 25 | auto it = state.agent_equipment.find(id); |
| 26 | if (it == state.agent_equipment.end()) |
| 27 | { |
| 28 | LogError("No aequipement type matching ID \"%s\"", id); |
| 29 | return nullptr; |
| 30 | } |
| 31 | return it->second; |
| 32 | } |
| 33 | |
| 34 | template <> const UString &StateObject<EquipmentSet>::getPrefix() |
| 35 | { |
no test coverage detected