private HitBoxData CollectHitBoxData() { HITTYPE hitType = (HITTYPE)cmbHitType.SelectedIndex; HITRESULT hitResult = (HITRESULT)cmbHitResult.SelectedIndex; JUGGLETYPE juggleProperties = (JUGGLETYPE)cmbJuggleType.SelectedIndex; HitBoxData data = new HitBoxData( hitType, (int)numericHitStop.Value, (int)numericHitStun.Value, (int)numericBlockStun.Value, (int)numericDamage.Value, hitResult, juggleProperties, chkWhiffCancel.Checked, chklstCancelRoutes.CheckedItems.Cast <string>().ToList()); return(data); }
public HitBoxData(HITTYPE hitType, int hitStop, int hitStun, int blockStun, int damage, HITRESULT hitResult, JUGGLETYPE juggleType, bool whiffCancel, List <string> cancelRoutes) { HitType = hitType; HitStop = hitStop; HitStun = hitStun; BlockStun = blockStun; Damage = damage; HitResult = hitResult; JuggleType = juggleType; WhiffCancel = whiffCancel; CancelRoutes = cancelRoutes; }