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 deltanedas
parent 8057cee55a
commit a7c6acd402
4 changed files with 20 additions and 4 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-objectives = Objectives
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

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