Beispiel #1
0
        public MonsterTypes(params MonsterType[] types)
        {
            if (types.Length > 0)
                Type_0 = types[0];

            if (types.Length > 1)
                Type_1 = types[1];

            if (types.Length > 2)
                throw new Exception();
        }
Beispiel #2
0
 public bool Contains(MonsterType type) => Type_0 == type || Type_1 == type;
Beispiel #3
0
        public MonsterTypes(MonsterType type_0, MonsterType type_1)
        {
            Type_0 = type_0;

            Type_1 = type_1;
        }