C# Class Terraria.ModLoader.IO.ItemIO

Afficher le fichier Open project: bluemagic123/tModLoader Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static Load ( TagCompound tag ) : System.Item
tag TagCompound
Résultat System.Item

Load() public static méthode

public static Load ( Item item, TagCompound tag ) : void
item Item
tag TagCompound
Résultat void

LoadLegacy() public static méthode

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

LoadLegacyInventory() public static méthode

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

Receive() public static méthode

public static Receive ( BinaryReader reader, bool readStack = false, bool readFavorite = false ) : Item
reader BinaryReader
readStack bool
readFavorite bool
Résultat Item

Receive() public static méthode

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

ReceiveModData() public static méthode

public static ReceiveModData ( Item item, BinaryReader reader ) : void
item Item
reader BinaryReader
Résultat void

Save() public static méthode

public static Save ( Item item ) : TagCompound
item Item
Résultat TagCompound

Send() public static méthode

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

SendModData() public static méthode

public static SendModData ( Item item, BinaryWriter writer ) : void
item Item
writer BinaryWriter
Résultat void