mDescription=getDescriptionText("Allows owner entity to be interacted with.");
}
InteractableComponent::~InteractableComponent()
{
}
IMPLEMENT_CO_NETOBJECT_V1(InteractableComponent);
boolInteractableComponent::onAdd()
{
if(!Parent::onAdd())
returnfalse;
returntrue;
}
voidInteractableComponent::onRemove()
{
Parent::onRemove();
}
//This is mostly a catch for situations where the behavior is re-added to the object and the like and we may need to force an update to the behavior
voidInteractableComponent::onComponentAdd()
{
Parent::onComponentAdd();
}
voidInteractableComponent::onComponentRemove()
{
Parent::onComponentRemove();
}
voidInteractableComponent::initPersistFields()
{
Parent::initPersistFields();
addField("interactableWeight",TypeF32,Offset(mInteractableWeight,InteractableComponent),"Controls importance values when using radius mode for interaction");