Open
Description
Currently if you need a list of components as a datafield they are either stored as strings and converted with TryGetRegistration
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Examine/GroupExamineComponent.cs#L52
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Pinpointer/PinpointerComponent.cs#L16
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Whitelist/EntityWhitelist.cs#L32
or even worse as a whole ComponentRegistry
when the values of the datafields inside the components aren't even needed.
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Server/Physics/Components/ChasingWalkComponent.cs#L68
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Server/Shuttles/DroneConsoleComponent.cs#L14
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Item/ItemToggle/Components/ComponentTogglerComponent.cs#L25
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Silicons/Laws/Components/SiliconLawUpdaterComponent.cs#L16
- https://github.com/space-wizards/space-station-14/blob/7c6028bc8037306536dca68f3c2cdd5edec56d14/Content.Shared/Traits/Assorted/AccentlessComponent.cs#L16
There even seems to be CompRegistryQueryEnumerator
which is used to find entities with the components from a registry.
Metadata
Metadata
Assignees
Labels
No labels
Activity