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
-
objectLongRef
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
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
referenceLongRefThe 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
valueintThe int value.
Returns
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
valuelongThe long value.