#nullable enable
using Content.Shared.GameObjects.Components.Body.Mechanism;
using Content.Shared.GameObjects.Components.Body.Part;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Interfaces.Serialization;
namespace Content.Shared.GameObjects.Components.Body.Behavior
{
public interface IMechanismBehavior : IExposeData
{
IBody? Body { get; }
IBodyPart? Part { get; }
///
/// Upward reference to the parent that this
/// behavior is attached to.
///
IMechanism Parent { get; }
///
/// The entity that owns .
/// For the entity owning the body that this mechanism may be in,
/// see
///
IEntity Owner { get; }
void Initialize(IMechanism parent);
void Startup();
void Update(float frameTime);
///
/// Called when the containing is attached to a
/// .
/// For instance, attaching a head with a brain inside to a body.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The body that the containing was added to.
///
void AddedToBody(IBody body);
///
/// Called when the parent is
/// added into a that is not attached to a
/// .
/// For instance, adding a brain to a dismembered head.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The part that the containing was added to.
///
void AddedToPart(IBodyPart part);
///
/// Called when the parent is added to a
/// that is attached to a .
/// For instance, adding a brain to a head that is attached to a body.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The body that the containing was added to.
///
///
/// The part that the containing was added to.
///
void AddedToPartInBody(IBody body, IBodyPart part);
///
/// Called when the parent is removed from a
/// .
/// For instance, removing a head with a brain inside from a body.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The body that the containing was removed from.
///
void RemovedFromBody(IBody old);
///
/// Called when the parent is
/// removed from a that is not attached to a
/// .
/// For instance, removing a brain from a dismembered head.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The part that the containing was removed from.
///
void RemovedFromPart(IBodyPart old);
///
/// Called when the parent is removed from a
/// that is attached to a .
/// For instance, removing a brain from a head that is attached to a body.
/// DO NOT CALL THIS DIRECTLY FROM OUTSIDE BODY SYSTEM CODE!
///
///
/// The body that the containing was removed from.
///
///
/// The part that the containing was removed from.
///
void RemovedFromPartInBody(IBody oldBody, IBodyPart oldPart);
}
}