LastMissionId: update formatting, and use Magnum types.

While I could keep using std::int32_t, as Magnum's Int type maps to it,
I want to be consistent with the rest of Magnum.
This commit is contained in:
Guillaume Jacquemin 2021-06-20 13:43:30 +02:00
parent b0affadd9a
commit 19262ae05e

View file

@ -16,34 +16,32 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>. // along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <cstdint>
#include <map> #include <map>
static const std::map<std::int32_t, const char*> mission_id_map {{ static const std::map<Int, const char*> mission_id_map {{
// Story missions // Story missions
{0x64, "Mission 1 - Training"}, {0x0064, "Mission 1 - Training"},
{0x65, "Mission 2 - Patrol Operation"}, {0x0065, "Mission 2 - Patrol Operation"},
{0x66, "Mission 3 - Fusion Cells in the Snow"}, {0x0066, "Mission 3 - Fusion Cells in the Snow"},
{0x67, "Mission 4 - Earning Changes"}, {0x0067, "Mission 4 - Earning Changes"},
{0x68, "Mission 5 - Unexpected Coordination"}, {0x0068, "Mission 5 - Unexpected Coordination"},
{0x69, "Mission 6 - Empowering Void"}, {0x0069, "Mission 6 - Empowering Void"},
{0x6A, "Mission 7 - Logisitics Obstacles"}, {0x006A, "Mission 7 - Logisitics Obstacles"},
{0x6B, "Mission 8 - Wrath of the Wastelands"}, {0x006B, "Mission 8 - Wrath of the Wastelands"},
{0x6C, "Mission 9 - Suspicious Originator"}, {0x006C, "Mission 9 - Suspicious Originator"},
{0x6D, "Mission 10 - Researchers Data Recovery"}, {0x006D, "Mission 10 - Researchers Data Recovery"},
{0x6E, "Mission 11 - Tempestuous Sector"}, {0x006E, "Mission 11 - Tempestuous Sector"},
{0x6F, "Mission 12 - Clashes of Metal"}, {0x006F, "Mission 12 - Clashes of Metal"},
{0x70, "Mission 13 - The Sandstorm Glutton"}, {0x0070, "Mission 13 - The Sandstorm Glutton"},
// Hunting grounds // Hunting grounds
{0xC8, "Hunt 1 - Desert Pathway Safety"}, {0x00C8, "Hunt 1 - Desert Pathway Safety"},
{0xC9, "Hunt 2 - Snowfield Custodian"}, {0x00C9, "Hunt 2 - Snowfield Custodian"},
{0xCA, "Hunt 3 - Abandoned Valley Raid"}, {0x00CA, "Hunt 3 - Abandoned Valley Raid"},
{0xCB, "Hunt 4 - Depths of the Machineries"}, {0x00CB, "Hunt 4 - Depths of the Machineries"},
// Challenges // Challenges
{0x12C, "Challenge 1 - Redline Battlefront"}, {0x012C, "Challenge 1 - Redline Battlefront"},
{0x140, "Challenge 2 - Void Convergence"}, {0x0140, "Challenge 2 - Void Convergence"},
{0x190, "Challenge 3 - Gates of Ascension"} {0x0190, "Challenge 3 - Gates of Ascension"}
}}; }};