Table of Contents

Class Stat

Namespace
ElectricDrill.SoapRpgFramework.Stats
Assembly
com.electricdrill.soap-rpg-framework.Runtime.dll

Represents a stat in the RPG system that extends BoundedValue with attribute scaling capabilities. Stats can be scaled based on entity attributes and provide equality comparison based on name.

public class Stat : BoundedValue
Inheritance
object
Stat
Inherited Members

Properties

AttributesScaling

Gets or sets the attributes scaling component that determines how this stat scales with entity attributes. Can be null if the stat doesn't scale with attributes.

[CanBeNull]
public AttributesScalingComponent AttributesScaling { get; }

Property Value

AttributesScalingComponent

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(Stat, Stat)

Determines whether two Stat objects are equal based on their names.

public static bool operator ==(Stat a, Stat b)

Parameters

a Stat

The first stat to compare.

b Stat

The second stat to compare.

Returns

bool

true if the stats are equal; otherwise, false.

operator !=(Stat, Stat)

Determines whether two Stat objects are not equal.

public static bool operator !=(Stat a, Stat b)

Parameters

a Stat

The first stat to compare.

b Stat

The second stat to compare.

Returns

bool

true if the stats are not equal; otherwise, false.