Esempio n. 1
0
 public SkinSwitcherSystem(Contexts contexts, WarshipsUiStorage warshipsUiStorage)
     : base(contexts.lobbyUi)
 {
     this.warshipsUiStorage = warshipsUiStorage;
     lobbyUiContext         = contexts.lobbyUi;
     warshipsGroup          = lobbyUiContext.GetGroup(LobbyUiMatcher.Warship);
 }
Esempio n. 2
0
 public MovingIconsDataCreationSystem(Contexts contexts, RectTransform movingAwardsParentRectTransform)
     : base(contexts.lobbyUi)
 {
     contextsLobbyUi        = contexts.lobbyUi;
     screenHeight           = movingAwardsParentRectTransform.sizeDelta.y;
     awardTrajectoryFactory = new MovingAwardTrajectoryFactory();
 }
 public StartButtonAnimationSystem(LobbyUiContext contextsLobbyUi, RectTransform[] startButtonSatellites)
 {
     if (startButtonSatellites == null || startButtonSatellites.Length == 0)
     {
         throw new Exception($"{nameof(startButtonSatellites)} was empty");
     }
     this.startButtonSatellites = startButtonSatellites;
 }
 public WarshipDataUpdaterSystem(Contexts contexts, Text rankText, Text ratingText, Slider slider)
     : base(contexts.lobbyUi)
 {
     this.slider     = slider;
     this.rankText   = rankText;
     this.ratingText = ratingText;
     lobbyUiContext  = contexts.lobbyUi;
 }
Esempio n. 5
0
        public MovingIconDataUpdaterSystem(Contexts contexts)
        {
            LobbyUiContext contextsLobbyUi = contexts.lobbyUi;

            movingAwardsGroup = contextsLobbyUi.GetGroup(LobbyUiMatcher.AllOf(
                                                             LobbyUiMatcher.MovingIcon, LobbyUiMatcher.Alpha, LobbyUiMatcher.Position,
                                                             LobbyUiMatcher.Scale));
        }
Esempio n. 6
0
 public MatchSearchTimeUpdaterSystem(LobbyUiContext lobbyUiContext, Text waitTimeGameObject)
 {
     this.lobbyUiContext = lobbyUiContext;
     if (waitTimeGameObject == null)
     {
         throw new NullReferenceException($"{nameof(waitTimeGameObject)} was null");
     }
     this.waitTimeGameObject = waitTimeGameObject;
 }
Esempio n. 7
0
 public WarshipOverviewEnablingSystem(Contexts contexts, WarshipsUiStorage warshipsUiStorage,
                                      LobbyLayoutSwitcher lobbyLayoutSwitcher, LobbyEcsController lobbyEcsController, TextTooltip textTooltip)
     : base(contexts.lobbyUi)
 {
     lobbyUiContext           = contexts.lobbyUi;
     this.warshipsUiStorage   = warshipsUiStorage;
     this.lobbyEcsController  = lobbyEcsController;
     this.textTooltip         = textTooltip;
     this.lobbyLayoutSwitcher = lobbyLayoutSwitcher;
 }
Esempio n. 8
0
        private void CreateWarshipComponents(List <WarshipDto> warships, LobbyUiContext lobbyUiContextArg)
        {
            log.Info("Старт создания сущностей для кораблей");
            for (var i = 0; i < warships.Count; i++)
            {
                log.Info("Создание сущности для корабля " + i);
                WarshipDto warshipDto = warships[i];
                lobbyUiContext.CreateEntity().AddWarship(warshipDto);
            }

            log.Info("Создание сущностей для кораблей окончено");
        }
Esempio n. 9
0
    public Contexts()
    {
        game       = new GameContext();
        input      = new InputContext();
        lobbyUi    = new LobbyUiContext();
        lootbox    = new LootboxContext();
        wppAccrual = new WppAccrualContext();

        var postConstructors = System.Linq.Enumerable.Where(
            GetType().GetMethods(),
            method => System.Attribute.IsDefined(method, typeof(Entitas.CodeGeneration.Attributes.PostConstructorAttribute))
            );

        foreach (var postConstructor in postConstructors)
        {
            postConstructor.Invoke(this, null);
        }
    }
        public MatchSearchMenuUpdaterSystem(LobbyUiContext lobbyUiContext,
                                            Text numberOfPlayersInQueueGameObject, Text numberOfPlayersInBattlesGameObject)
            : base(lobbyUiContext)
        {
            this.lobbyUiContext = lobbyUiContext;
            if (numberOfPlayersInQueueGameObject == null)
            {
                throw new Exception($"{nameof(numberOfPlayersInQueueGameObject)} was null");
            }

            if (numberOfPlayersInBattlesGameObject == null)
            {
                throw new Exception($"{nameof(numberOfPlayersInBattlesGameObject)} was null");
            }

            this.numberOfPlayersInQueueGameObject   = numberOfPlayersInQueueGameObject;
            this.numberOfPlayersInBattlesGameObject = numberOfPlayersInBattlesGameObject;
        }
Esempio n. 11
0
        public StartButtonHandler(LobbyUiContext context, LobbyUiStorage lobbyUiStorage, UiSoundsManager lobbySoundsManager)
            : base(context)
        {
            lobbyUiContext = context;

            battleLoadingMenu = lobbyUiStorage.battleLoadingMenu;
            matchSearchCanvas = lobbyUiStorage.matchSearchCanvas;
            overlayCanvas     = lobbyUiStorage.overlayCanvas;
            gameViewsRoot     = lobbyUiStorage.gameViewsRoot;

            if (battleLoadingMenu == null)
            {
                throw new NullReferenceException($"{nameof(battleLoadingMenu)} was null");
            }
            if (matchSearchCanvas == null)
            {
                throw new NullReferenceException($"{nameof(matchSearchCanvas)} was null");
            }

            this.lobbySoundsManager = lobbySoundsManager;
        }
        public SkinButtonsSwitcherSystem(Contexts contexts, WarshipsUiStorage warshipsUiStorage)
            : base(contexts.lobbyUi)
        {
            lobbyUiContext = contexts.lobbyUi;
            if (warshipsUiStorage.leftSkinButton != null)
            {
                leftButton = warshipsUiStorage.leftSkinButton;
            }
            else
            {
                throw new NullReferenceException(nameof(warshipsUiStorage.leftSkinButton));
            }

            if (warshipsUiStorage.rightSkinButton != null)
            {
                rightButton = warshipsUiStorage.rightSkinButton;
            }
            else
            {
                throw new NullReferenceException(nameof(warshipsUiStorage.rightSkinButton));
            }
        }
Esempio n. 13
0
 public MatchSearchDataUpdaterSystem(Contexts contexts)
 {
     lobbyUiContext = contexts.lobbyUi;
 }
 public ShiftSkinRightSystem(Contexts contexts, UiSoundsManager lobbySoundsManager)
     : base(contexts.lobbyUi)
 {
     lobbyUiContext          = contexts.lobbyUi;
     this.lobbySoundsManager = lobbySoundsManager;
 }
 public BlurImageStateUpdaterSystem(LobbyUiContext lobbyUiContext)
 {
     this.lobbyUiContext = lobbyUiContext;
 }
Esempio n. 16
0
 public ClearLobbyUiSystem(LobbyUiContext lobbyUiContext)
 {
     this.lobbyUiContext = lobbyUiContext;
 }
Esempio n. 17
0
 public MovingIconDestroySystem(Contexts contexts)
 {
     uiSoundsManager   = UiSoundsManager.Instance();
     lobbyUiContext    = contexts.lobbyUi;
     movingAwardsGroup = lobbyUiContext.GetGroup(LobbyUiMatcher.MovingIcon);
 }
Esempio n. 18
0
 public AccountDtoComponentsCreatorSystem(Contexts contexts)
 {
     lobbyUiContext = contexts.lobbyUi;
 }
 public BlurInitializeSystem(LobbyUiContext lobbyUiContext)
 {
     this.lobbyUiContext = lobbyUiContext;
 }
Esempio n. 20
0
 public MovingAwardsTextCreationSystem(Contexts contexts)
     : base(contexts.lobbyUi)
 {
     lobbyUiContext = contexts.lobbyUi;
 }
Esempio n. 21
0
 public MovingAwardsMainSystem(Contexts contexts)
 {
     lobbyUiContext = contexts.lobbyUi;
 }