private static HitStruct GetBulletHitStruct(EntityBase source, long beforehit, HitType hittype, HitBulletStruct bulletdata, int soundid) => GetHitStruct(source, beforehit, hittype, bulletdata, HitSourceType.eBullet, EElementType.eNone, 0, soundid);
private static HitStruct GetHitStruct(EntityBase source, long beforehit, HitType hittype, HitBulletStruct bulletdata, HitSourceType sourcetype, EElementType element, int buffid, int soundid) => new HitStruct { source = source, before_hit = beforehit, type = (beforehit > 0L) ? HitType.Add : hittype, bulletdata = bulletdata, sourcetype = sourcetype, element = element, buffid = buffid, soundid = soundid };
private static HitStruct GetBulletHitStruct(EntityBase source, long beforehit, HitType hittype, HitBulletStruct bulletdata) { int soundid = 0; if ((null != source) && (source.m_Data != null)) { soundid = source.m_Data.HittedEffectID; } return(GetBulletHitStruct(source, beforehit, hittype, bulletdata, soundid)); }