public void ChangeCountry(ConfirmUserCountryEvent e, SingleNode <UserCountryComponent> country, [JoinAll] Optional <SingleNode <OpenSelectCountryButtonComponent> > button) { country.component.CountryCode = e.CountryCode; if (button.IsPresent()) { button.Get().component.CountryCode = e.CountryCode; } }
public void OnMain(NodeAddedEvent e, SingleNode <MainScreenComponent> screen, SelfUserNode selfUser) { if (!selfUser.Entity.HasComponent <UserCountryComponent>()) { ConfirmUserCountryEvent eventInstance = new ConfirmUserCountryEvent { CountryCode = (RegionInfo.CurrentRegion == null) ? "US" : RegionInfo.CurrentRegion.Name }; base.ScheduleEvent(eventInstance, selfUser); } screen.component.ShowLast(); base.ScheduleEvent <SetScreenHeaderEvent>(screen); }
public void Continue(SelectCountryEvent e, Node stub, [JoinAll] SingleNode <SelfUserComponent> selfUser, [JoinAll] SingleNode <ClientSessionComponent> session) { ConfirmUserCountryEvent eventInstance = new ConfirmUserCountryEvent { CountryCode = e.CountryCode }; base.ScheduleEvent(eventInstance, selfUser); PaymentStatisticsEvent event3 = new PaymentStatisticsEvent { Action = PaymentStatisticsAction.COUNTRY_SELECT, Screen = "SelectCountryScreen" }; base.ScheduleEvent(event3, session); }
public void ReloadPaymentSectionOnChangeCountry(ConfirmUserCountryEvent e, SingleNode <SelfUserComponent> user) { base.ScheduleEvent <OpenGameCurrencyPaymentSectionEvent>(user); }