CatStation/Content.Shared/Changeling/Components/ChangelingDevouredComponent.cs
Pok e8f4975f46
Changeling gaining DNA (#43759)
* changeling-gain-DNA

* review

* Return IsUniqueDevour

* oops

* Update SharedChangelingIdentitySystem.cs

* Store data in ChangelingIdentityData + fixes

List of changes:
- Whether an identity granted devour is now tracked in ChangelingIdentityData
- Made devoured shutdown cleanup again
- Made server set the mind to null if it never found one, instead of being invalid

Fixes:
- Fixed name being networked as empty if original was deleted

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
2026-04-27 20:10:39 +00:00

19 lines
685 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Changeling.Components;
/// <summary>
/// Component used for marking entities devoured by a changeling.
/// Used to track which changelings have an identity of this entity.
/// Used for cleanup purposes.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ChangelingDevouredComponent : Component
{
/// <summary>
/// HashSet of all changelings that have devoured this entity.
/// </summary>
// TODO: This should be using some sort of relation system in the future.
[DataField, AutoNetworkedField]
public HashSet<EntityUid> DevouredBy = new();
}