HitSplat
data class HitSplat( var amount: Int, val type: HitsplatDefinition, val clientSideDelay: Int = 0, val sourceIndex: Int = -1, val hiddenFromBystanders: Boolean = false, val soakType: HitsplatDefinition? = null, val soakAmount: Int = 0, val isMax: Boolean = false)
constructor( amount: Int, type: HitsplatDefinition, clientSideDelay: Int = 0, source: Actor?, hiddenFromBystanders: Boolean = false, soakType: HitsplatDefinition? = null, soakAmount: Int = 0, isMax: Boolean = false)fun hit(target: Npc, by: Actor, damage: Int, splat: HitsplatDefinition) { val splats = target.findComponent<HitSplats>() ?: HitSplats().also { target.addComponent(it) } splats.pending += HitSplat(damage, splat, source = by)}amount
Section titled “amount”var amount: Intval type: HitsplatDefinitionclientSideDelay
Section titled “clientSideDelay”val clientSideDelay: IntsourceIndex
Section titled “sourceIndex”val sourceIndex: InthiddenFromBystanders
Section titled “hiddenFromBystanders”val hiddenFromBystanders: BooleansoakType
Section titled “soakType”val soakType: HitsplatDefinition?soakAmount
Section titled “soakAmount”val soakAmount: Intval isMax: Boolean