mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 05:17:28 +00:00
* Content update for UI refactor
* Big update
* Sharing
* Remaining content updates
* First big update
* Prototype updates
* AUGH
* Fix UI comp ref
* Cleanup
- Fix predicted message, fix item slots, fix interaction range check.
* Fix regressions
* Make this predictive
idk why it wasn't.
* Fix slime merge
* Merge conflict
* Fix merge
(cherry picked from commit 5896e68752)
27 lines
819 B
C#
27 lines
819 B
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.UserInterface;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class IntrinsicUIComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// List of UIs and their actions that this entity has.
|
|
/// </summary>
|
|
[DataField("uis", required: true)] public Dictionary<Enum, IntrinsicUIEntry> UIs = new();
|
|
}
|
|
|
|
[DataDefinition]
|
|
public sealed partial class IntrinsicUIEntry
|
|
{
|
|
[DataField("toggleAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>), required: true)]
|
|
public string? ToggleAction;
|
|
|
|
/// <summary>
|
|
/// The action used for this BUI.
|
|
/// </summary>
|
|
[DataField("toggleActionEntity")]
|
|
public EntityUid? ToggleActionEntity = new();
|
|
}
|