Skip to main content

INailable

An interface in Root.Township, Alta.Crafting.

A crafting piece fixed in place by hammering nails, implemented by ConfirmationCraftingPart. Each GenericCraftingNail reports its hits here.

Properties​

MemberWhat it is
Transform transform { get; }The piece's transform.

Methods​

MemberWhat it is
bool HasOverflow(GenericCraftingNail nail, ImpactHit impact)Whether a hit on the nail counts as overflow. ConfirmationCraftingPart always returns false.
void OnComplete(GenericCraftingNail nail, bool hasEffects)Called when a nail is fully hammered in. ConfirmationCraftingPart crafts the piece into its slot once every nail is done.
void ReceiveHit(GenericCraftingNail nail, Vector3 impactDirection, float damage)Server: turns a hammer hit into nail progress and syncs the nail to clients.
void SyncHit(GenericCraftingNail nail, ImpactHitWithTool hitWithTool)Sends the client-side nail hit effect to players in the chunk.

Used in​

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