Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T > Class Template Reference
+ Inheritance diagram for Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >:
+ Collaboration diagram for Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >:

Public Member Functions

 ClassPayloadHandler (Func< BinaryReader, T > reader, Action< BinaryWriter, T > writer, Func< T, T > clone, Func< T > makeDefault=null)
 
override object Clone (object o)
 
override IList CloneList (IList< T > list)
 
override object Default ()
 

Private Attributes

Func< T, T > clone
 
Func< T > makeDefault
 

Detailed Description

Type Constraints
T :class 

Definition at line 60 of file TagIO.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.ClassPayloadHandler ( Func< BinaryReader, T >  reader,
Action< BinaryWriter, T >  writer,
Func< T, T >  clone,
Func< T >  makeDefault = null 
)

Definition at line 65 of file TagIO.cs.

66  :
67  base(reader, writer) {
68  this.clone = clone;
69  this.makeDefault = makeDefault;
70  }

Member Function Documentation

override object Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.Clone ( object  o)
override IList Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.CloneList ( IList< T >  list)
override object Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.Default ( )

Member Data Documentation

Func<T, T> Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.clone
private

Definition at line 62 of file TagIO.cs.

Func<T> Terraria.ModLoader.IO.TagIO.ClassPayloadHandler< T >.makeDefault
private

Definition at line 63 of file TagIO.cs.