Hide role entities in the spawn menu (#32798)
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
|
using Robust.Shared.Prototypes;
|
||||||
|
|
||||||
namespace Content.Server.Atmos.Components
|
namespace Content.Server.Atmos.Components
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future.
|
/// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RegisterComponent]
|
[RegisterComponent, EntityCategory("Mapping")]
|
||||||
public sealed partial class AtmosFixMarkerComponent : Component
|
public sealed partial class AtmosFixMarkerComponent : Component
|
||||||
{
|
{
|
||||||
// See FixGridAtmos for more details
|
// See FixGridAtmos for more details
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public sealed partial class MindRoleComponent : BaseMindRoleComponent
|
|||||||
public ProtoId<JobPrototype>? JobPrototype { get; set; }
|
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
|
public abstract partial class BaseMindRoleComponent : Component
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
entity-category-name-actions = Actions
|
entity-category-name-actions = Actions
|
||||||
entity-category-name-game-rules = Game Rules
|
entity-category-name-game-rules = Game Rules
|
||||||
entity-category-name-objectives = Objectives
|
entity-category-name-objectives = Objectives
|
||||||
|
entity-category-name-roles = Mind Roles
|
||||||
|
entity-category-name-mapping = Mapping
|
||||||
|
|||||||
@@ -11,4 +11,14 @@
|
|||||||
- type: entityCategory
|
- type: entityCategory
|
||||||
id: Objectives
|
id: Objectives
|
||||||
name: entity-category-name-objectives
|
name: entity-category-name-objectives
|
||||||
hideSpawnMenu: true
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user