コード例 #1
0
        public override int CompareTo(ConfigEntityAttackEffect other)
        {
            if (other == null)
            {
                return(1);
            }
            int num = IndexedConfig.Compare(this.EffectPattern, other.EffectPattern);

            if (num != 0)
            {
                return(num);
            }
            num = IndexedConfig.Compare(this.SwitchName, other.SwitchName);
            if (num != 0)
            {
                return(num);
            }
            num = this.MuteAttackEffect.CompareTo(other.MuteAttackEffect);
            if (num != 0)
            {
                return(num);
            }
            return(this.AttackEffectTriggerPos.CompareTo(other.AttackEffectTriggerPos));
        }
コード例 #2
0
        public override int CompareTo(HitExplodeTracingBulletMixinArgument other)
        {
            if (other == null)
            {
                return(1);
            }
            int num = IndexedConfig.Compare(this.BulletName, other.BulletName);

            if (num != 0)
            {
                return(num);
            }
            num = this.XZAngleOffset.CompareTo(other.XZAngleOffset);
            if (num != 0)
            {
                return(num);
            }
            num = IndexedConfig.Compare(this.RandomBulletNames, other.RandomBulletNames);
            if (num != 0)
            {
                return(num);
            }
            return(IndexedConfig.Compare(this.BulletSpeed, other.BulletSpeed));
        }