Serv3 rework content changes (#7145)
This commit is contained in:
@@ -16,14 +16,12 @@ namespace Content.Tests.Shared.Alert
|
||||
{
|
||||
const string PROTOTYPES = @"
|
||||
- type: alert
|
||||
name: AlertLowPressure
|
||||
alertType: LowPressure
|
||||
id: LowPressure
|
||||
category: Pressure
|
||||
icon: /Textures/Interface/Alerts/Pressure/lowpressure.png
|
||||
|
||||
- type: alert
|
||||
name: AlertHighPressure
|
||||
alertType: HighPressure
|
||||
id: HighPressure
|
||||
category: Pressure
|
||||
icon: /Textures/Interface/Alerts/Pressure/highpressure.png
|
||||
";
|
||||
@@ -42,7 +40,7 @@ namespace Content.Tests.Shared.Alert
|
||||
var factory = IoCManager.Resolve<IComponentFactory>();
|
||||
factory.RegisterClass<AlertsComponent>();
|
||||
prototypeManager.LoadFromStream(new StringReader(PROTOTYPES));
|
||||
prototypeManager.Resync();
|
||||
prototypeManager.ResolveResults();
|
||||
|
||||
var entSys = IoCManager.Resolve<IEntitySystemManager>();
|
||||
entSys.LoadExtraSystemType<ServerAlertsSystem>();
|
||||
|
||||
Reference in New Issue
Block a user