So I know in c++ I am able to do this for lowering memory usage:
#include <iostream>
int main()
{
const unsigned char isPoisoned = 1 << 0;
const unsigned char isBleeding = 1 << 1;
const unsigned char isFreezing = 1 << 2;
const unsigned char isBurning = 1 << 3;
const unsigned char isFlying = 1 << 4;
const unsigned char isStructure = 1 << 5;
const unsigned char isSummon = 1 << 6;
const unsigned char isEnemy= 1 << 7;
unsigned char me = 0; // all flags/options turned off to start
me |= isBleeding | isPoisoned;
return 0;
}
I’m wondering if this is completely acceptable in EU4 or if I should do this another way.