MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / matchById

Class matchById

src/Savegame/AlienMission.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61class matchById: public std::unary_function<const AlienBase *, bool>
62{
63public:
64 /// Remember ID.
65 matchById(int id) : _id(id) { /* Empty by design. */ }
66 /// Match with stored ID.
67 bool operator()(const AlienBase *ab) const { return ab->getId() == _id; }
68private:
69 int _id;
70};
71
72/**
73 * @param node The YAML node containing the data.

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected