diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-22 07:42:43 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-22 07:42:43 +0200 |
commit | 3941b7834f0a038ed544e6ee96b9920d43db4c32 (patch) | |
tree | 4c0cb0d2a37105eb40b88608c9c9e18fc0d1dd5b /src/player_race_flag.hpp | |
parent | 3966bfb2f6836d13c1a93bfab1e9fa61ec4fff35 (diff) |
Rework PR{1,2}_* flags to flag_set<>
Since there's no need for two tiers we also reduce the flag set
to 1 tier. (Breaks savefile compatbility.)
Diffstat (limited to 'src/player_race_flag.hpp')
-rw-r--r-- | src/player_race_flag.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/player_race_flag.hpp b/src/player_race_flag.hpp new file mode 100644 index 00000000..1268c3c0 --- /dev/null +++ b/src/player_race_flag.hpp @@ -0,0 +1,12 @@ +#pragma once + +#include "player_race_flag_set.hpp" +#include <boost/preprocessor/cat.hpp> + +// +// Define flag set for each flag. +// +#define PR(tier, index, name) \ + DECLARE_FLAG(player_race_flag_set, BOOST_PP_CAT(PR_,name), tier, index) +#include "player_race_flag_list.hpp" +#undef PR |