EventBus Refactor (#490)
* API changes for the new EventBus. * Update Engine Module.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using Content.Server.GameObjects;
|
||||
using Content.Server.Interfaces.Chat;
|
||||
@@ -34,7 +34,7 @@ namespace Content.Server.GameTicking.GameRules
|
||||
{
|
||||
_chatManager.DispatchServerAnnouncement("The game is now a death match. Kill everybody else to win!");
|
||||
|
||||
_entityManager.SubscribeEvent<MobDamageStateChangedMessage>(_onMobDamageStateChanged, this);
|
||||
_entityManager.EventBus.SubscribeEvent<MobDamageStateChangedMessage>(_onMobDamageStateChanged, this);
|
||||
_playerManager.PlayerStatusChanged += PlayerManagerOnPlayerStatusChanged;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Content.Server.GameTicking.GameRules
|
||||
{
|
||||
base.Removed();
|
||||
|
||||
_entityManager.UnsubscribeEvent<MobDamageStateChangedMessage>(this);
|
||||
_entityManager.EventBus.UnsubscribeEvent<MobDamageStateChangedMessage>(this);
|
||||
_playerManager.PlayerStatusChanged -= PlayerManagerOnPlayerStatusChanged;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user