EntityStorage ECS (#9291)
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
||||
|
||||
namespace Content.Server.Storage.Components;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed class ArtifactStorageComponent : EntityStorageComponent
|
||||
public sealed class ArtifactStorageComponent : Component
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override bool CanFit(EntityUid entity)
|
||||
{
|
||||
return _entMan.HasComponent<ArtifactComponent>(entity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user