Move TagComponent from server to shared (#3076)
* Move TagComponent to shared * Fix test * Not a web edited commit No sir * Update Content.Shared/GameObjects/Components/Tag/TagComponentState.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.GameObjects.Components.Tag;
|
||||
using Content.Shared.GameObjects.Components.Tag;
|
||||
using Content.Shared.Prototypes.Tag;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
@@ -69,9 +69,8 @@ namespace Content.IntegrationTests.Tests.Tag
|
||||
{
|
||||
// Has one tag, the starting tag
|
||||
Assert.That(sTagComponent.Tags.Count, Is.EqualTo(1));
|
||||
|
||||
var startingTagPrototype = sPrototypeManager.Index<TagPrototype>(StartingTag);
|
||||
Assert.That(sTagComponent.Tags, Contains.Item(startingTagPrototype));
|
||||
sPrototypeManager.Index<TagPrototype>(StartingTag);
|
||||
Assert.That(sTagComponent.Tags, Contains.Item(StartingTag));
|
||||
|
||||
// Single
|
||||
Assert.True(sTagDummy.HasTag(StartingTag));
|
||||
|
||||
Reference in New Issue
Block a user