C# Class Terraria.ModLoader.IO.BinaryIO

Show file Open project: bluemagic123/tModLoader

Public Methods

Method Description
ReadItem ( this reader, bool readStack = false, bool readFavorite = false ) : System.Item
ReadVarInt ( this reader ) : int
SafeRead ( this reader, Action read ) : void
SafeWrite ( this writer, Action write ) : void
WriteItem ( this writer, System.Item item, bool readStack = false, bool readFavorite = false ) : void
WriteVarInt ( this writer, int value ) : void

Method Details

ReadItem() public static method

public static ReadItem ( this reader, bool readStack = false, bool readFavorite = false ) : System.Item
reader this
readStack bool
readFavorite bool
return System.Item

ReadVarInt() public static method

public static ReadVarInt ( this reader ) : int
reader this
return int

SafeRead() public static method

public static SafeRead ( this reader, Action read ) : void
reader this
read Action
return void

SafeWrite() public static method

public static SafeWrite ( this writer, Action write ) : void
writer this
write Action
return void

WriteItem() public static method

public static WriteItem ( this writer, System.Item item, bool readStack = false, bool readFavorite = false ) : void
writer this
item System.Item
readStack bool
readFavorite bool
return void

WriteVarInt() public static method

public static WriteVarInt ( this writer, int value ) : void
writer this
value int
return void