All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.model.trait.fact.TraitPrefixedBuffFact.kt Maven / Gradle / Ivy

The newest version!
package com.bselzer.gw2.v2.model.trait.fact

import com.bselzer.gw2.v2.model.enumeration.wrapper.EffectName
import com.bselzer.ktx.serialization.serializer.SecondDurationSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.time.Duration

@Serializable
@SerialName("PrefixedBuff")
data class TraitPrefixedBuffFact(
    /**
     * The boon or condition affected by this fact.
     */
    @SerialName("status")
    val status: EffectName = EffectName(),

    /**
     * The description of the effect.
     */
    @SerialName("description")
    val effectDescription: String = "",

    /**
     * The number of stacks applied.
     */
    @SerialName("apply_count")
    val count: Int = 0,

    /**
     * The duration of the effect in seconds.
     */
    @Serializable(with = SecondDurationSerializer::class)
    @SerialName("duration")
    val duration: Duration = Duration.ZERO,

    /**
     * Describes the icon to show before the fact.
     */
    @SerialName("prefix")
    val prefix: TraitBuffPrefix = TraitBuffPrefix()
) : TraitFact()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy