X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSonePart.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FSonePart.kt;h=fd224741075de66192f61dd7bbd8536c5be2e140;hp=0000000000000000000000000000000000000000;hb=de6d73a2f0718ff65832859a3ef7ba4f32299327;hpb=4273a6ebdde8c4f1092a6c5d4f62ad483f3eaa96 diff --git a/src/main/kotlin/net/pterodactylus/sone/text/SonePart.kt b/src/main/kotlin/net/pterodactylus/sone/text/SonePart.kt new file mode 100644 index 0000000..fd22474 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/text/SonePart.kt @@ -0,0 +1,13 @@ +package net.pterodactylus.sone.text + +import net.pterodactylus.sone.data.Sone +import net.pterodactylus.sone.template.SoneAccessor + +/** + * [Part] implementation that stores a reference to a [Sone]. + */ +data class SonePart(val sone: Sone) : Part { + + override val text: String = SoneAccessor.getNiceName(sone) + +}