mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* 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>
19 lines
685 B
C#
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();
|
|
}
|