Update trivial components to use auto comp states (#20539)
This commit is contained in:
@@ -11,7 +11,6 @@ using Robust.Client.Input;
|
||||
using Robust.Client.Player;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Input;
|
||||
using Robust.Shared.Input.Binding;
|
||||
using Robust.Shared.Map;
|
||||
@@ -49,7 +48,6 @@ namespace Content.Client.Tabletop
|
||||
.Register<TabletopSystem>();
|
||||
|
||||
SubscribeNetworkEvent<TabletopPlayEvent>(OnTabletopPlay);
|
||||
SubscribeLocalEvent<TabletopDraggableComponent, ComponentHandleState>(HandleComponentState);
|
||||
SubscribeLocalEvent<TabletopDraggableComponent, ComponentRemove>(HandleDraggableRemoved);
|
||||
SubscribeLocalEvent<TabletopDraggableComponent, AppearanceChangeEvent>(OnAppearanceChange);
|
||||
}
|
||||
@@ -148,13 +146,6 @@ namespace Content.Client.Tabletop
|
||||
_window.OnClose += OnWindowClose;
|
||||
}
|
||||
|
||||
private void HandleComponentState(EntityUid uid, TabletopDraggableComponent component, ref ComponentHandleState args)
|
||||
{
|
||||
if (args.Current is not TabletopDraggableComponentState state) return;
|
||||
|
||||
component.DraggingPlayer = state.DraggingPlayer;
|
||||
}
|
||||
|
||||
private void OnWindowClose()
|
||||
{
|
||||
if (_table != null)
|
||||
|
||||
Reference in New Issue
Block a user