Table of Contents

Class IntRef

Namespace
ElectricDrill.AstraRpgFramework.Utils
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

A reference to an integer value. Can either be a constant value or a reference to an IntVarSO ScriptableObject.

[Serializable]
public class IntRef
Inheritance
object
IntRef

Fields

ConstantValue

The constant integer value.

public int ConstantValue

Field Value

int

UseConstant

If true, uses the constant value. Otherwise, uses the IntVarSO variable.

public bool UseConstant

Field Value

bool

Variable

The IntVarSO variable.

public IntVarSO Variable

Field Value

IntVarSO

Properties

Value

Gets or sets the value of the reference.

public int Value { get; set; }

Property Value

int

Operators

implicit operator int(IntRef)

Allows implicit conversion from an IntRef to an int.

public static implicit operator int(IntRef reference)

Parameters

reference IntRef

The IntRef to convert.

Returns

int

implicit operator IntRef(int)

Allows implicit conversion from an int to an IntRef, creating a constant reference.

public static implicit operator IntRef(int value)

Parameters

value int

The integer value.

Returns

IntRef