Files
sbox-public/engine/Sandbox.Engine/Scene/GameObjectSystems/SelectionSetsSystem.cs
Tony Ferguson c9c6e29a6a GameObjectSystem: Hide useless shit (#4723)
* Hide useless props in ClutterGridSystem/SelectionSetSystem

* Give MovieRecorderSystem a Title

* SystemsPage: obey HideAttribute rule
2026-05-01 11:30:10 +01:00

28 lines
667 B
C#

namespace Sandbox;
/// <summary>
/// Stores editor selection sets on the scene so they serialize into SceneProperties/GameObjectSystems.
/// </summary>
[Expose]
public sealed class SelectionSetsSystem : GameObjectSystem
{
[Property, Hide]
public SelectionSetsData Data { get; set; } = new();
public SelectionSetsSystem( Scene scene ) : base( scene )
{
}
public sealed class SelectionSetsData
{
public List<SelectionSetEntry> SelectionSets { get; set; } = [];
}
public sealed class SelectionSetEntry
{
public string Name { get; set; } = string.Empty;
public List<Guid> ObjectIds { get; set; } = [];
public bool Enabled { get; set; } = true;
}
}