ConfirmationCraftingPart.ClientSideNailHitSync
A struct in Root.Township, Alta.Crafting.
Message a client sends when it hits one of a confirmation crafting part's nails. The server works out the damage and applies the hit.
- Listed in Crafting and making
- Nested in
ConfirmationCraftingPart
Constructors
| Member | What it is |
|---|---|
ClientSideNailHitSync(int nailIndex, ImpactHitWithTool impactWithTool) | Creates a ConfirmationCraftingPart.ClientSideNailHitSync from nailIndex and impactWithTool. |
Fields
Methods
| Member | What it is |
|---|---|
float GetImpactDamage(ImpactDetector detector) | Server: looks up the tool entity and returns its damage on the nail's detector, or 0 if the tool is gone. |
void Serialize(Stream stream) | Reads or writes the fields to the network stream. |
Used in
Members of other types that take, return or hold a ClientSideNailHitSync: