1 using System.Collections.Generic;
2 using System.Collections.Immutable;
15 public readonly
float FadeInDelay, FadeInDuration, FadeOutDuration;
29 foreach (var subElement
in element.Elements())
31 switch (subElement.Name.ToString().ToLowerInvariant())
41 public readonly ImmutableArray<Slide>
Slides;
45 List<Slide> slides =
new List<Slide>();
46 foreach (var subElement
in element.Elements())
48 switch (subElement.Name.ToString().ToLowerInvariant())
51 slides.Add(
new Slide(subElement));
55 Slides = slides.ToImmutableArray();
Base class for content file types, which are loaded from filelist.xml via reflection....
string? GetAttributeString(string key, string? def)
float GetAttributeFloat(string key, float def)
LocalizedString Fallback(LocalizedString fallback, bool useDefaultLanguageIfFound=true)
Use this text instead if the original text cannot be found.
readonly float TextFadeInDelay
Slide(ContentXElement element)
readonly LocalizedString Text
readonly float FadeInDelay
SlideshowPrefab(ContentFile file, ContentXElement element)
static readonly PrefabCollection< SlideshowPrefab > Prefabs
readonly ImmutableArray< Slide > Slides