Skip to main content

SerializedImpactHit

A struct in Root.Township, the global namespace.

A tool hit packed for the network by ImpactSystemHitManager: the tool entity, where it hit and the damage values.

Constructors​

MemberWhat it is
SerializedImpactHit(ImpactHitWithTool hit, ImpactTool tool)Creates a SerializedImpactHit from hit and tool.

Fields​

MemberWhat it is
float healthDamageHealth damage the hit deals.
float hitEffectivenessHow effective the hit was.
Vector3 hitPositionWorld point of the hit.
ImpactType impactTypeThe kind of impact.
bool isValidHitWhether the hit counted as valid.
float multipliersCombined damage multipliers.
NetworkEntity toolEntityThe network entity of the tool that hit.

Methods​

MemberWhat it is
void Serialize(Stream stream)Reads or writes all the fields.

Used in​

Members of other types that take, return or hold a SerializedImpactHit: