EventBus Refactor (#490)
* API changes for the new EventBus. * Update Engine Module.
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Content.Client.GameObjects.Components
|
||||
base.Startup();
|
||||
|
||||
_snapGridComponent.OnPositionChanged += SnapGridOnPositionChanged;
|
||||
Owner.EntityManager.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
Owner.EntityManager.EventBus.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -41,12 +41,12 @@ namespace Content.Client.GameObjects.Components
|
||||
base.Shutdown();
|
||||
|
||||
_snapGridComponent.OnPositionChanged -= SnapGridOnPositionChanged;
|
||||
Owner.EntityManager.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
Owner.EntityManager.EventBus.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
}
|
||||
|
||||
private void SnapGridOnPositionChanged()
|
||||
{
|
||||
Owner.EntityManager.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
Owner.EntityManager.EventBus.RaiseEvent(Owner, new SubFloorHideDirtyEvent());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user