C# Class Terraria.ModLoader.IO.ItemIO

Mostrar archivo Open project: bluemagic123/tModLoader Class Usage Examples

Public Methods

Method Description
Load ( TagCompound tag ) : System.Item
Load ( Item item, TagCompound tag ) : void
LoadLegacy ( Item item, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
LoadLegacyInventory ( Item inv, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
Receive ( BinaryReader reader, bool readStack = false, bool readFavorite = false ) : Item
Receive ( Item item, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
ReceiveModData ( Item item, BinaryReader reader ) : void
Save ( Item item ) : TagCompound
Send ( Item item, BinaryWriter writer, bool writeStack = false, bool writeFavourite = false ) : void
SendModData ( Item item, BinaryWriter writer ) : void

Private Methods

Method Description
LegacyModData ( int type, BinaryReader reader, bool hasGlobalSaving = true ) : byte[]
LoadGlobals ( Item item, IList list ) : void
LoadLegacyModData ( Item item, byte data, bool hasGlobalSaving = true ) : void
SaveGlobals ( Item item ) : List
WriteVanillaID ( Item item, BinaryWriter writer ) : void

Method Details

Load() public static method

public static Load ( TagCompound tag ) : System.Item
tag TagCompound
return System.Item

Load() public static method

public static Load ( Item item, TagCompound tag ) : void
item Item
tag TagCompound
return void

LoadLegacy() public static method

public static LoadLegacy ( Item item, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
item Item
reader BinaryReader
readStack bool
readFavorite bool
return void

LoadLegacyInventory() public static method

public static LoadLegacyInventory ( Item inv, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
inv Item
reader BinaryReader
readStack bool
readFavorite bool
return void

Receive() public static method

public static Receive ( BinaryReader reader, bool readStack = false, bool readFavorite = false ) : Item
reader BinaryReader
readStack bool
readFavorite bool
return Item

Receive() public static method

public static Receive ( Item item, BinaryReader reader, bool readStack = false, bool readFavorite = false ) : void
item Item
reader BinaryReader
readStack bool
readFavorite bool
return void

ReceiveModData() public static method

public static ReceiveModData ( Item item, BinaryReader reader ) : void
item Item
reader BinaryReader
return void

Save() public static method

public static Save ( Item item ) : TagCompound
item Item
return TagCompound

Send() public static method

public static Send ( Item item, BinaryWriter writer, bool writeStack = false, bool writeFavourite = false ) : void
item Item
writer BinaryWriter
writeStack bool
writeFavourite bool
return void

SendModData() public static method

public static SendModData ( Item item, BinaryWriter writer ) : void
item Item
writer BinaryWriter
return void