GenericCraftingStation.ClientSideNailHitSync
A struct in Root.Township, Alta.Crafting.
Message a client sends when it hits a nail on a piece in a generic crafting station's project. The server finds the piece and nail and applies the hit.
- Listed in Crafting and making
- Nested in
GenericCraftingStation
Constructors
| Member | What it is |
|---|---|
ClientSideNailHitSync(int pieceIndex, int nailIndex, ImpactHitWithTool impactWithTool) | Creates a GenericCraftingStation.ClientSideNailHitSync from pieceIndex, 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: