#nullable enable using Content.Shared.GameObjects.Components.Body.Part; namespace Content.Shared.GameObjects.Components.Body.Mechanism { public interface IMechanism : IHasBody { IBodyPart? Part { get; set; } /// /// Professional description of the . /// string Description { get; set; } /// /// The message to display upon examining a mob with this /// added. /// If the string is empty (""), no message will be displayed. /// string ExamineMessage { get; set; } /// /// Max HP of this . /// int MaxDurability { get; set; } /// /// Current HP of this . /// int CurrentDurability { get; set; } /// /// At what HP this is completely destroyed. /// int DestroyThreshold { get; set; } /// /// Armor of this against attacks. /// int Resistance { get; set; } /// /// Determines a handful of things - mostly whether this /// can fit into a . /// // TODO BODY OnSizeChanged int Size { get; set; } /// /// What kind of this /// can be easily installed into. /// BodyPartCompatibility Compatibility { get; set; } // TODO BODY Turn these into event listeners so they dont need to be exposed /// /// 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! /// void AddedToBody(); /// /// 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! /// void AddedToPart(); /// /// 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! /// 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! /// void RemovedFromPart(IBodyPart old); /// /// 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! /// void AddedToPartInBody(); /// /// 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! /// void RemovedFromPartInBody(IBody? oldBody, IBodyPart? oldPart); } }