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).
- Listed in Networking and servers
- Derived types
ForgedPointCollection,CookingPoint,CraftingPart,Fire,LiquidContainer,ICustomTypeReplace,NetworkRigidbody,AssistGrabInteractable,DurabilityModule,Interactable,InteractableLastPlayerInteractorHandler,PhysicalMaterialPart
Properties
| Member | What it is |
|---|---|
NetworkEntity Entity { get; } | The entity this component is on. |
Methods
| Member | What it is |
|---|---|
void ReplacedWith(NetworkEntity entity, ReplaceAvoidFlags replaceFlags) | Called with the new entity. Copy state across unless the flags say to skip it. |