public WarshipUpdaterSystem(Contexts contexts, Transform gameViewsParent) : base(contexts.lobbyUi) { isWarshipCreationCompleted = false; this.gameViewsParent = gameViewsParent; warshipsGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher .AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View)); }
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)); }
public int GetCountOfSpawnedWarships() { int spawnedWarshipsCount = contexts.lobbyUi .GetGroup(LobbyUiMatcher.AllOf(LobbyUiMatcher.Warship, LobbyUiMatcher.View)) .count; return(spawnedWarshipsCount); }
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)); }
public MovingAwardsTextDeleteSystem(Contexts contexts) { awardsTextGroup = contexts.lobbyUi.GetGroup(LobbyUiMatcher .AllOf(LobbyUiMatcher.View, LobbyUiMatcher.Text, LobbyUiMatcher.AwardText)); }