Add helper method for statically getting entity systems (#1061)

This commit is contained in:
chairbender
2020-05-20 07:42:02 -07:00
committed by GitHub
parent eb6463fad0
commit 4e192f9084
5 changed files with 47 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
using System.Collections.Generic;
using Robust.Client.GameObjects.EntitySystems;
using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Utility;
namespace Robust.Client.Animations
{
@@ -35,7 +37,7 @@ namespace Robust.Client.Animations
var keyFrame = KeyFrames[keyFrameIndex];
IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AudioSystem>()
EntitySystem.Get<AudioSystem>()
.Play(keyFrame.Resource, entity);
}