IParentRelativeComponent
Namespace: Bang.Components
Assembly: Bang.dll
public abstract IParentRelativeComponent : IComponent
A component that is relative to the parent. It will be notified each time the tracking component of the parent changes.
Implements: IComponent
⭐ Properties
HasParent
public abstract virtual bool HasParent { get; }
Whether the component has a parent that it's tracking.
Returns
bool
⭐ Methods
WithoutParent()
public abstract IParentRelativeComponent WithoutParent()
Creates a copy of the component without any parent.
Returns
IParentRelativeComponent
OnParentModified(IComponent, Entity)
public abstract void OnParentModified(IComponent parentComponent, Entity childEntity)
Called when a parent modifies
Parameters
parentComponent
IComponent
childEntity
Entity
⚡