* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
35 lines
1015 B
C#
35 lines
1015 B
C#
#nullable enable
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using NUnit.Framework;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Client.ResourceManagement;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.IntegrationTests.Tests
|
|
{
|
|
[TestFixture]
|
|
public class DummyIconTest : ContentIntegrationTest
|
|
{
|
|
[Test]
|
|
public async Task Test()
|
|
{
|
|
var client = StartClient();
|
|
await client.WaitIdleAsync();
|
|
|
|
var prototypeManager = client.ResolveDependency<IPrototypeManager>();
|
|
var resourceCache = client.ResolveDependency<IResourceCache>();
|
|
|
|
await client.WaitAssertion(() =>
|
|
{
|
|
foreach (var proto in prototypeManager.EnumeratePrototypes<EntityPrototype>())
|
|
{
|
|
if (!proto.Components.ContainsKey("Sprite")) continue;
|
|
|
|
var _ = SpriteComponent.GetPrototypeTextures(proto, resourceCache).ToList();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|