Skip to content

Commit

Permalink
Merge pull request #1437 from nicoschmitt/initcoordevent
Browse files Browse the repository at this point in the history
Event: send current position on start
  • Loading branch information
NecronomiconCoding authored Jul 30, 2016
2 parents 41515c1 + 7664849 commit 48ba5b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion PoGo.NecroBot.Logic/State/PositionCheckState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,20 @@ public async Task<IState> Execute(ISession session, CancellationToken cancellati
}
}

session.EventDispatcher.Send(new UpdatePositionEvent()
{
Latitude = session.Client.CurrentLatitude,
Longitude = session.Client.CurrentLongitude
});

session.EventDispatcher.Send(new WarnEvent
{
Message =
session.Translation.GetTranslation(TranslationString.WelcomeWarning, session.Client.CurrentLatitude,
session.Client.CurrentLongitude),
RequireInput = session.LogicSettings.StartupWelcomeDelay
});

return new InfoState();
}

Expand Down

0 comments on commit 48ba5b8

Please sign in to comment.