Skip to main content

ForgedPointCollection

A class in Root.Township, Alta.Blacksmithing.

The set of ForgedPoint children on a forged item, synced and saved as one collection. Keeps forging progress when the item is replaced.

Constructors​

MemberWhat it is
ForgedPointCollection()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Properties​

1 private and internal property
MemberWhat it is
private NetworkEntity Alta.Networking.IEntityReplaceHandler.Entity { get; }The entity this collection belongs to.

Methods​

MemberWhat it is
override void SyncAllChildren()Syncs every point, only on a real server (not local test).
2 private and internal methods
MemberWhat it is
private void DestroyAllEntities()Private: destroys the NetworkEntity component on each child point. Not called in this build.
private void Alta.Networking.IEntityReplaceHandler.ReplacedWith(NetworkEntity entity, ReplaceAvoidFlags replaceFlags)Copies each point's progress to the matching point on the replacing item, by index.

Used in​

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