EventBus Refactor (#490)
* API changes for the new EventBus. * Update Engine Module.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Content.Client.GameObjects.Components
|
||||
base.Startup();
|
||||
|
||||
_snapGrid.OnPositionChanged += SnapGridOnPositionChanged;
|
||||
Owner.EntityManager.RaiseEvent(Owner, new WindowSmoothDirtyEvent());
|
||||
Owner.EntityManager.EventBus.RaiseEvent(Owner, new WindowSmoothDirtyEvent());
|
||||
|
||||
var state0 = $"{_stateBase}0";
|
||||
_sprite.LayerMapSet(CornerLayers.SE, _sprite.AddLayerState(state0));
|
||||
@@ -54,7 +54,7 @@ namespace Content.Client.GameObjects.Components
|
||||
|
||||
private void SnapGridOnPositionChanged()
|
||||
{
|
||||
Owner.EntityManager.RaiseEvent(Owner, new WindowSmoothDirtyEvent());
|
||||
Owner.EntityManager.EventBus.RaiseEvent(Owner, new WindowSmoothDirtyEvent());
|
||||
}
|
||||
|
||||
public void UpdateSprite()
|
||||
|
||||
Reference in New Issue
Block a user