Table of Contents

Class IntRef

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

A reference to an integer value. Can either be a constant value or a reference to an IntVar 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 IntVar variable.

public bool UseConstant

Field Value

bool

Variable

The IntVar variable.

public IntVar Variable

Field Value

IntVar

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