Exemplo n.º 1
0
 private void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo module)
 {
     if (Model != null && Model.ScreenType == ModuleScreenType.Normal)
     {
         UpdateCompletedState();
     }
 }
Exemplo n.º 2
0
 private void OnModuleStateChnaged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo module)
 {
     if (module.Id == moduleId)
     {
         Setup();
     }
 }
Exemplo n.º 3
0
 private void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState,
                                       ShipModuleInfo module)
 {
     if (module.Id >= moduleId)
     {
         ResetImageMaterial();
         AnimateToOpenedState();
     }
 }
Exemplo n.º 4
0
 private void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo module)
 {
     if (IsLoaded)
     {
         if (newState == ShipModuleState.Opened)
         {
             SkipState(TutorialStateName.SpaceShip);
         }
     }
 }
Exemplo n.º 5
0
        public void SetState(ShipModuleState newState)
        {
            var oldState = State;

            State = newState;

            if (oldState != newState)
            {
                if (newState == ShipModuleState.Opened)
                {
                    OpenTime = Services.TimeService.UnixTimeInt;
                }
                GameEvents.OnShipModuleStateChanged(oldState, State, this);
            }
        }
Exemplo n.º 6
0
 private void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo info)
 {
     if (oldState != newState)
     {
         if (newState == ShipModuleState.Opened)
         {
             LogModuleOpenTime(info);
             Services.Modules.GetModuleCounter().Match(
                 None: () => {
                 return(F.None);
             },
                 Some: count => {
                 LogModuleOpenCounter(count);
                 return(F.Some(count));
             });
         }
     }
 }
Exemplo n.º 7
0
 public static void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo module)
 => ShipModuleStateChanged?.Invoke(oldState, newState, module);
Exemplo n.º 8
0
 private void OnShipModuleStateChanged(ShipModuleState oldState, ShipModuleState newState, ShipModuleInfo module)
 {
     UpdateShip();
 }