mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-01 16:28:36 -04:00
* Hide useless props in ClutterGridSystem/SelectionSetSystem * Give MovieRecorderSystem a Title * SystemsPage: obey HideAttribute rule
28 lines
667 B
C#
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;
|
|
}
|
|
}
|