コード例 #1
0
        public MiscFrm(OffensiveCollision collision, int index)
        {
            InitializeComponent();
            curCollision = collision;
            mainIndex    = index;

            Text = $"Viewing index {mainIndex}";
            comboMode.SelectedIndex = 0;
        }
コード例 #2
0
        public static MiscFrm GetInstance(OffensiveCollision collision, int index)
        {
            if (openForm == null)
            {
                openForm             = new MiscFrm(collision, index);
                openForm.FormClosed += delegate { openForm = null; };
            }

            return(openForm);
        }
コード例 #3
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            OffensiveCollision comparison = (OffensiveCollision)obj;

            return((ID == comparison.ID) && (Bone == comparison.Bone) && (Damage == comparison.Damage) && (ShieldDamage == comparison.ShieldDamage) &&
                   (Angle == comparison.Angle) && (BaseKnockback == comparison.BaseKnockback) && (WeightKnockback == comparison.WeightKnockback) && (KnockbackGrowth == comparison.KnockbackGrowth) && (Size == comparison.Size) &&
                   (ZOffset == comparison.ZOffset) && (YOffset == comparison.YOffset) && (XOffset == comparison.XOffset) && (TripRate == comparison.TripRate) &&
                   (HitlagMultiplier == comparison.HitlagMultiplier) && (SdiMultiplier == comparison.SdiMultiplier) && (Flags == comparison.Flags));
        }