Exemple #1
0
 public bool IsHitObjectType(HitObjectType type)
 {
     return(Type.IsType(type));
 }
Exemple #2
0
        protected HitObject(int startTime, Position position, bool isNewcombo = false, HitObjectType type = HitObjectType.None, HitObjectSoundType soundType = HitObjectSoundType.Normal)
        {
            StartTime     = startTime;
            StartPosition = position;
            NewCombo      = isNewcombo || type.HasFlag(HitObjectType.NewCombo)
                ? ((int)type & 112) >> 4 + 1
                : 0;
            var typeint = (int)type;

            Type      = (HitObjectType)(typeint - (typeint & 116)); //take out new combo bits (64, 32, 16 and 4)
            SoundType = soundType;
        }