Terraria ModLoader  0.10.1.5
A framework for Terraria mods
Terraria.ModLoader.ModNet.ModHeader Class Reference
+ Collaboration diagram for Terraria.ModLoader.ModNet.ModHeader:

Public Member Functions

 ModHeader (string name, Version version, byte[] hash, bool signed)
 
bool Matches (TmodFile mod)
 
override string ToString ()
 

Public Attributes

byte[] hash
 
string name
 
string path
 
bool signed
 
Version version
 

Detailed Description

Definition at line 16 of file ModNet.cs.

Constructor & Destructor Documentation

Terraria.ModLoader.ModNet.ModHeader.ModHeader ( string  name,
Version  version,
byte[]  hash,
bool  signed 
)

Definition at line 24 of file ModNet.cs.

References Terraria.ModLoader.IO.TmodFile.hash, Terraria.ModLoader.ModLoader.ModPath, Terraria.ModLoader.IO.TmodFile.name, and Terraria.ModLoader.IO.TmodFile.version.

24  {
25  this.name = name;
26  this.version = version;
27  this.hash = hash;
28  this.signed = signed;
29  path = Path.Combine(ModLoader.ModPath, name + ".tmod");
30  }

Member Function Documentation

bool Terraria.ModLoader.ModNet.ModHeader.Matches ( TmodFile  mod)
override string Terraria.ModLoader.ModNet.ModHeader.ToString ( )

Member Data Documentation

byte [] Terraria.ModLoader.ModNet.ModHeader.hash

Definition at line 20 of file ModNet.cs.

string Terraria.ModLoader.ModNet.ModHeader.name

Definition at line 18 of file ModNet.cs.

Referenced by Terraria.ModLoader.ModNet.DownloadNextMod().

string Terraria.ModLoader.ModNet.ModHeader.path

Definition at line 22 of file ModNet.cs.

Referenced by Terraria.ModLoader.ModNet.AddNoSyncDeps().

bool Terraria.ModLoader.ModNet.ModHeader.signed

Definition at line 21 of file ModNet.cs.

Version Terraria.ModLoader.ModNet.ModHeader.version

Definition at line 19 of file ModNet.cs.