Example #1
0
 public WarshipUpdaterSystem(Contexts contexts, Transform gameViewsParent)
     : base(contexts.lobbyUi)
 {
     isWarshipCreationCompleted = false;
     this.gameViewsParent       = gameViewsParent;
     warshipsGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher
                                               .AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View));
 }
Example #2
0
        public MovingIconDataUpdaterSystem(Contexts contexts)
        {
            LobbyUiContext contextsLobbyUi = contexts.lobbyUi;

            movingAwardsGroup = contextsLobbyUi.GetGroup(LobbyUiMatcher.AllOf(
                                                             LobbyUiMatcher.MovingIcon, LobbyUiMatcher.Alpha, LobbyUiMatcher.Position,
                                                             LobbyUiMatcher.Scale));
        }
        public MovingIconsUpdaterSystem(Contexts contexts, RectTransform upperObject)
        {
            this.upperObject = upperObject;
            var contextsLobbyUi = contexts.lobbyUi;

            movingAwardsGroup = contextsLobbyUi.GetGroup(LobbyUiMatcher
                                                         .AllOf(LobbyUiMatcher.MovingIcon, LobbyUiMatcher.View, LobbyUiMatcher.Position));
        }
Example #4
0
        public int GetCountOfSpawnedWarships()
        {
            int spawnedWarshipsCount = contexts.lobbyUi
                                       .GetGroup(LobbyUiMatcher.AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View))
                                       .count;

            return(spawnedWarshipsCount);
        }
Example #5
0
        public bool IsWarshipsCreationCompleted()
        {
            int spawnedWarshipsCount = contexts.lobbyUi
                                       .GetGroup(LobbyUiMatcher.AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View))
                                       .count;

            return(spawnedWarshipsCount == warshipsCount);
        }
 public WarshipsEnablingSystem(Contexts contexts)
     : base(contexts.lobbyUi)
 {
     warshipsGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher
                                               .AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View));
 }
 protected override ICollector <LobbyUiEntity> GetTrigger(IContext <LobbyUiEntity> context)
 {
     return(context.CreateCollector(LobbyUiMatcher.AllOf(LobbyUiMatcher.MovingIcon)
                                    .NoneOf(LobbyUiMatcher.View, LobbyUiMatcher.Image)));
 }
 public MovingAwardsTextDataUpdaterSystem(Contexts contexts)
 {
     awardsTextGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher
                                                 .AllOf(LobbyUiMatcher.AwardText, LobbyUiMatcher.Position, LobbyUiMatcher.Alpha));
 }
Example #9
0
 public MovingAwardsTextDeleteSystem(Contexts contexts)
 {
     awardsTextGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher
                                                 .AllOf(LobbyUiMatcher.View, LobbyUiMatcher.Text, LobbyUiMatcher.AwardText));
 }