Skip to main content

IEntityReplaceHandler

An interface in Root.Township, Alta.Networking.

A component that carries its state over when its entity is replaced by another (for example an item turning into its cooked version).

Properties​

MemberWhat it is
NetworkEntity Entity { get; }The entity this component is on.

Methods​

MemberWhat it is
void ReplacedWith(NetworkEntity entity, ReplaceAvoidFlags replaceFlags)Called with the new entity. Copy state across unless the flags say to skip it.