Table of Contents

Class LongRef

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

A reference to a long value. Can either be a constant value or a reference to a LongVar ScriptableObject.

[Serializable]
public class LongRef
Inheritance
object
LongRef

Fields

ConstantValue

The constant long value.

public long ConstantValue

Field Value

long

UseConstant

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

public bool UseConstant

Field Value

bool

Variable

The LongVar variable.

public LongVar Variable

Field Value

LongVar

Properties

Value

Gets or sets the value of the reference.

public long Value { get; set; }

Property Value

long

Operators

implicit operator long(LongRef)

Allows implicit conversion from a LongRef to a long.

public static implicit operator long(LongRef reference)

Parameters

reference LongRef

The LongRef to convert.

Returns

long

implicit operator LongRef(int)

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

public static implicit operator LongRef(int value)

Parameters

value int

The int value.

Returns

LongRef

implicit operator LongRef(long)

Allows implicit conversion from a long to an LongRef, creating a constant reference.

public static implicit operator LongRef(long value)

Parameters

value long

The long value.

Returns

LongRef