public SkinSwitcherSystem(Contexts contexts, WarshipsUiStorage warshipsUiStorage) : base(contexts.lobbyUi) { this.warshipsUiStorage = warshipsUiStorage; lobbyUiContext = contexts.lobbyUi; warshipsGroup = lobbyUiContext.GetGroup(LobbyUiMatcher.Warship); }
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; }
public MovingIconDataUpdaterSystem(Contexts contexts) { LobbyUiContext contextsLobbyUi = contexts.lobbyUi; movingAwardsGroup = contextsLobbyUi.GetGroup(LobbyUiMatcher.AllOf( LobbyUiMatcher.MovingIcon, LobbyUiMatcher.Alpha, LobbyUiMatcher.Position, LobbyUiMatcher.Scale)); }
public MatchSearchTimeUpdaterSystem(LobbyUiContext lobbyUiContext, Text waitTimeGameObject) { this.lobbyUiContext = lobbyUiContext; if (waitTimeGameObject == null) { throw new NullReferenceException($"{nameof(waitTimeGameObject)} was null"); } this.waitTimeGameObject = waitTimeGameObject; }
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; }
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("Создание сущностей для кораблей окончено"); }
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; }
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)); } }
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; }
public ClearLobbyUiSystem(LobbyUiContext lobbyUiContext) { this.lobbyUiContext = lobbyUiContext; }
public MovingIconDestroySystem(Contexts contexts) { uiSoundsManager = UiSoundsManager.Instance(); lobbyUiContext = contexts.lobbyUi; movingAwardsGroup = lobbyUiContext.GetGroup(LobbyUiMatcher.MovingIcon); }
public AccountDtoComponentsCreatorSystem(Contexts contexts) { lobbyUiContext = contexts.lobbyUi; }
public BlurInitializeSystem(LobbyUiContext lobbyUiContext) { this.lobbyUiContext = lobbyUiContext; }
public MovingAwardsTextCreationSystem(Contexts contexts) : base(contexts.lobbyUi) { lobbyUiContext = contexts.lobbyUi; }
public MovingAwardsMainSystem(Contexts contexts) { lobbyUiContext = contexts.lobbyUi; }