Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public void ReloadPaymentSectionOnChangeCountry(ConfirmUserCountryEvent e, SingleNode <SelfUserComponent> user)
 {
     base.ScheduleEvent <OpenGameCurrencyPaymentSectionEvent>(user);
 }