Show / Hide Table of Contents

Class Box<T>

A boxed data element that is readable, writable, equatable, and can be persisted as a scriptable object.

Inheritance
System.Object
Box<T>
BoxedBool
BoxedFloat
BoxedInt
BoxedString
BoxedTransform
BoxedVector2
BoxedVector3
Implements
IEquatable<Box<T>>
IValueEquals<Box<T>>
IValueEquals<T>
IReadable<T>
IWritable<T>
Namespace: FasterGames.Whiskey.Boxes
Assembly: cs.temp.dll.dll
Syntax
public abstract class Box<T> : ScriptableObject, IEquatable<Box<T>>, IValueEquals<Box<T>>, IValueEquals<T>, IReadable<T>, IWritable<T>
Type Parameters
Name Description
T

element type

Fields

data

The data

Declaration
protected T data
Field Value
Type Description
T

Methods

Equals(Box<T>)

Declaration
public bool Equals(Box<T> other)
Parameters
Type Name Description
Box<T> other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

Read()

Read the element.

Declaration
public T Read()
Returns
Type Description
T

element data

ValueEquals(T)

Ensures an inner value matches another.

Declaration
public bool ValueEquals(T other)
Parameters
Type Name Description
T other

other value

Returns
Type Description
System.Boolean

true if equal, false if not equal

ValueEquals(Box<T>)

Ensures an inner value matches another.

Declaration
public bool ValueEquals(Box<T> other)
Parameters
Type Name Description
Box<T> other
Returns
Type Description
System.Boolean

true if equal, false if not equal

Write(T)

Write to the element.

Declaration
public void Write(T value)
Parameters
Type Name Description
T value

element data

Implements

IEquatable<>
IValueEquals<T>
IValueEquals<T>
IReadable<T>
IWritable<T>
In This Article
Back to top Copyright FasterGames ©