mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 11:40:52 +01:00
* Add TryGetOpenBUI Avoids having to get the component and openinterfaces separately. * Couple more helpers * entityquery * reviews * Shared BUIs * zawehdo * More boilerplate * Bunch more work * Building * Stuff * More state handling * API cleanup * Slight tweak * Tweaks * gabriel * Disposies * Active UI support * Lots of fixes - Fix states not applying properly, fix predicted messages, remove redundant message type, add RaiseUiMessage for an easy way to do it from shared, add the old BUI state change events back. * Fix test failures * weh * Remove unncessary closes. * release note
26 lines
726 B
C#
26 lines
726 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
namespace Robust.Shared.GameObjects;
|
|
|
|
/// <summary>
|
|
/// Stores data about this entity and what BUIs they have open.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class UserInterfaceUserComponent : Component
|
|
{
|
|
public override bool SessionSpecific => true;
|
|
|
|
[DataField]
|
|
public Dictionary<EntityUid, List<Enum>> OpenInterfaces = new();
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
internal sealed class UserInterfaceUserComponentState : IComponentState
|
|
{
|
|
public Dictionary<NetEntity, List<Enum>> OpenInterfaces = new();
|
|
}
|