Table of Contents

Class HealthScalingComponentSO

Namespace
ElectricDrill.AstraHealth.Scaling.ScalingComponents
Assembly
com.electricdrill.astra-health.Runtime.dll

A scaling component that calculates a value based on an entity's health values.

public class HealthScalingComponentSO : ScalingComponentSO, ITaggable
Inheritance
object
ScalingComponentSO
HealthScalingComponentSO
Implements
ITaggable
Inherited Members
ScalingComponentSO.Tags

Properties

ScalingMetricValues

Read-only view of every metric/multiplier pair defined on this component. Intended for tooling and UI display (e.g. tooltips) — not for runtime calculations.

public IReadOnlyList<HealthScalingComponentSO.HealthScalingMetricValue> ScalingMetricValues { get; }

Property Value

IReadOnlyList<HealthScalingComponentSO.HealthScalingMetricValue>

Methods

CalculateValue(EntityCore)

Calculates the scaling value based on the entity's health component.

public override long CalculateValue(EntityCore entity)

Parameters

entity EntityCore

The entity to calculate the value for.

Returns

long

The calculated scaling value.