Пример #1
0
 public Personality(MindType mind, EnergyType energy, NatureType nature, TacticType tactics, IdentityType identity)
 {
     Mind     = mind;
     Energy   = energy;
     Nature   = nature;
     Tactics  = tactics;
     Identity = identity;
 }
Пример #2
0
        private static int GetBitwiseFlag(MindType mind, EnergyType energy, NatureType nature, TacticType tactics, IdentityType identity)
        {
            // 0x00000000
            int bits = 0b00000;

            bits |= (int)mind
                    | (int)nature
                    | (int)energy
                    | (int)tactics
                    | (int)identity;

            return(bits);
        }