C# Class tsge.Classes.Terraria

Datei anzeigen Open project: Walkman100/TSGE

Public Properties

Property Type Description
GameVersions List
LatestVersion int
MaxItemCount int
ProfilePath string

Public Methods

Method Description
GetProfileName ( string fileName ) : string

Attempts to obtain the profiles name.

Initialize ( ) : bool

Initializes the Terraria class.

LoadProfile ( string fileName ) : Player

Attempts to decrypt and load a player file.

SaveProfile ( Player player, string fileName ) : bool

Attempts to encrypt and save a player object.

Terraria ( ) : System

Default Constructor

Private Methods

Method Description
DecryptProfile ( string fileName ) : byte[]

Decrypts the given player profile and returns the data as an array.

EncryptProfile ( string fileName ) : bool

Encrypts the given player profile.

Method Details

GetProfileName() public method

Attempts to obtain the profiles name.
public GetProfileName ( string fileName ) : string
fileName string
return string

Initialize() public method

Initializes the Terraria class.
public Initialize ( ) : bool
return bool

LoadProfile() public method

Attempts to decrypt and load a player file.
public LoadProfile ( string fileName ) : Player
fileName string
return Player

SaveProfile() public method

Attempts to encrypt and save a player object.
public SaveProfile ( Player player, string fileName ) : bool
player Player
fileName string
return bool

Terraria() public method

Default Constructor
public Terraria ( ) : System
return System

Property Details

GameVersions public_oe static_oe property

Current supported game version.
public static List GameVersions
return List

LatestVersion public_oe static_oe property

The latest supported version of Terraria.
public static int LatestVersion
return int

MaxItemCount public_oe static_oe property

The latest max item used while handling profiles.
public static int MaxItemCount
return int

ProfilePath public_oe static_oe property

Profile path to the Terraria save game files.
public static string ProfilePath
return string