Move ActorComponent to shared (#4527)

This commit is contained in:
Leon Friedrich
2023-10-29 04:21:09 +11:00
committed by GitHub
parent 429bc806dc
commit 5af3cb969c
4 changed files with 13 additions and 16 deletions

View File

@@ -1,13 +0,0 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Player;
using Robust.Shared.ViewVariables;
namespace Robust.Server.GameObjects
{
[RegisterComponent]
public sealed partial class ActorComponent : Component
{
[ViewVariables]
public ICommonSession PlayerSession { get; internal set; } = default!;
}
}

View File

@@ -15,6 +15,7 @@ using Robust.Shared.Maths;
using Robust.Shared.Network;
using Robust.Shared.Network.Messages;
using Robust.Shared.Placement;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Robust.Server.Placement

View File

@@ -0,0 +1,11 @@
using Robust.Shared.GameObjects;
using Robust.Shared.ViewVariables;
namespace Robust.Shared.Player;
[RegisterComponent]
public sealed partial class ActorComponent : Component
{
[ViewVariables]
public ICommonSession PlayerSession { get; internal set; } = default!;
}

View File

@@ -5,7 +5,6 @@ using System.Reflection;
using NUnit.Framework;
using Robust.Client.ComponentTrees;
using Robust.Client.GameObjects;
using Robust.Server.Containers;
using Robust.Server.Debugging;
using Robust.Server.GameObjects;
using Robust.Server.GameStates;
@@ -13,7 +12,6 @@ using Robust.Server.Physics;
using Robust.Shared.Configuration;
using Robust.Shared.Containers;
using Robust.Shared.ContentPack;
using Robust.Shared.Debugging;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Map;
@@ -23,7 +21,7 @@ using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Controllers;
using Robust.Shared.Physics.Dynamics;
using Robust.Shared.Physics.Systems;
using Robust.Shared.Prototypes;
using Robust.Shared.Player;
using Robust.Shared.Reflection;
using Robust.Shared.Utility;
using MapSystem = Robust.Server.GameObjects.MapSystem;