Hide role entities in the spawn menu (#32798)

This commit is contained in:
Leon Friedrich
2024-10-14 16:05:49 +13:00
committed by GitHub
parent 4e0018697f
commit 2d60a4684c
4 changed files with 19 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
using Robust.Shared.Prototypes;
namespace Content.Server.Atmos.Components
{
/// <summary>
/// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future.
/// </summary>
[RegisterComponent]
[RegisterComponent, EntityCategory("Mapping")]
public sealed partial class AtmosFixMarkerComponent : Component
{
// See FixGridAtmos for more details

View File

@@ -42,6 +42,8 @@ public sealed partial class MindRoleComponent : BaseMindRoleComponent
public ProtoId<JobPrototype>? JobPrototype { get; set; }
}
// Why does this base component actually exist? It does make auto-categorization easy, but before that it was useless?
[EntityCategory("Roles")]
public abstract partial class BaseMindRoleComponent : Component
{

View File

@@ -1,3 +1,5 @@
entity-category-name-actions = Actions
entity-category-name-game-rules = Game Rules
entity-category-name-objectives = Objectives
entity-category-name-roles = Mind Roles
entity-category-name-mapping = Mapping

View File

@@ -12,3 +12,13 @@
id: Objectives
name: entity-category-name-objectives
hideSpawnMenu: true
- type: entityCategory
id: Roles
name: entity-category-name-roles
hideSpawnMenu: true
# markers, atmos fixing, etc
- type: entityCategory
id: Mapping
name: entity-category-name-mapping