SubscribeEvent() has been split into SubscribeNetworkEvent() and SubscribeLocalEvent() methods on EntitySystem.
Most methods on EntityEventBus now require callers to specify the source (Local or Network) of the events.
This commit is contained in:
@@ -74,8 +74,8 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
input.BindMap.BindFunction(EngineKeyFunctions.MoveDown, moveDownCmdHandler);
|
||||
input.BindMap.BindFunction(EngineKeyFunctions.Run, runCmdHandler);
|
||||
|
||||
SubscribeEvent<PlayerAttachSystemMessage>(PlayerAttached);
|
||||
SubscribeEvent<PlayerDetachedSystemMessage>(PlayerDetached);
|
||||
SubscribeLocalEvent<PlayerAttachSystemMessage>(PlayerAttached);
|
||||
SubscribeLocalEvent<PlayerDetachedSystemMessage>(PlayerDetached);
|
||||
|
||||
_audioSystem = EntitySystemManager.GetEntitySystem<AudioSystem>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user