Exemple #1
0
        public TextPopupManager(string fontContentPath, StackingMethod stackingMethod)
        {
            this.fontContentPath = fontContentPath;
            this.stackingMethod  = stackingMethod;

            messages = new List <PopupTextElement>();
        }
Exemple #2
0
        public RegionsModel(ICollection <Region> regions, StackingMethod method = StackingMethod.RegularStacking)
        {
            if (regions is null || !regions.Any())
            {
                throw new ArgumentException("Regions are required to instantiate a regions model!");
            }

            Regions = regions.ToHashSet();
            Method  = method;
            Rows    = Method == StackingMethod.RegularStacking ? GetRows() : GetSegments();
        }