diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index 096afd40..797623e1 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -113,6 +113,22 @@ data class ContentGroup( override val extras: Set<Extra> ) : ContentComposite +data class PlatformHintedContent( + val inner: ContentNode, + override val platforms: Set<PlatformData> +): ContentComposite { + override val children = listOf(inner) + + override val dci: DCI + get() = inner.dci + + override val extras: Set<Extra> + get() = inner.extras + + override val style: Set<Style> + get() = inner.style +} + /** All extras */ interface Extra interface Style |