Astra Unity 2.6.6
Astra Unity Plugin
Astra.Serialization.Tuplet< T1, T2 > Class Template Reference

Implementation of a 3 type tuplet serializable by Unity More...

Inheritance diagram for Astra.Serialization.Tuplet< T1, T2 >:

Public Member Functions

virtual void Set (System.Object a, System.Object b, System.Object c)
 Sets values for a tuplet More...
 
void OnAfterDeserialize ()
 Implementation for Unity ISerializationCallbackReceiver
 
void OnBeforeSerialize ()
 Implementation for Unity ISerializationCallbackReceiver
 

Static Public Member Functions

static Tuplet< T1, T2, T3 > Create (T1 a, T2 b, T3 c)
 
static Tuplet< T1, T2, T3 > Create (System.Object a, System.Object b, System.Object c)
 Creates a tuplet with the given objects More...
 
static implicit operator Tuplet< T1, T2, T3 > (Tuplet< System.Object, System.Object, System.Object > orig)
 allows boxed tuple to convert to typed tuple More...
 
static Tuplet< T1, T2 > Create (T1 a, T2 b)
 

Public Attributes

T1 item1
 
T2 item2
 
T3 item3
 

Properties

T1 First [getset]
 
T2 Second [getset]
 
T3 Third [getset]
 
- Properties inherited from Astra.Serialization.ITuplet2< T1, T2 >
T1 First [get]
 
T2 Second [get]
 
- Properties inherited from Astra.Serialization.ITuplet3< T1, T2, T3 >
T1 First [getset]
 
T2 Second [getset]
 
T3 Third [getset]
 

Detailed Description

Implementation of a 3 type tuplet serializable by Unity

Implementation of a 2 type tuplet serializable by Unity

Template Parameters
T1Type of first item
T2Type of second item
T3Type of third item
Template Parameters
T1Type of first item
T2Type of second item

Member Function Documentation

◆ Create()

static Tuplet< T1, T2, T3 > Astra.Serialization.Tuplet< T1, T2 >.Create ( System.Object  a,
System.Object  b,
System.Object  c 
)
inlinestatic

Creates a tuplet with the given objects

Parameters
a1st object
b2nd object
c3rd object

◆ operator Tuplet< T1, T2, T3 >()

static implicit Astra.Serialization.Tuplet< T1, T2 >.operator Tuplet< T1, T2, T3 > ( Tuplet< System.Object, System.Object, System.Object >  orig)
inlinestatic

allows boxed tuple to convert to typed tuple

Parameters
origBoxed tuple (untyped)

◆ Set()

virtual void Astra.Serialization.Tuplet< T1, T2 >.Set ( System.Object  a,
System.Object  b,
System.Object  c 
)
inlinevirtual

Sets values for a tuplet

Parameters
a1st object
b2nd object
c3rd object

Implements Astra.Serialization.ITuplet3< T1, T2, T3 >.


The documentation for this class was generated from the following file: