A* Pathfinding Project  4.1.0
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
AstarUpdateChecker Class Reference

Handles update checking for the A* Pathfinding Project. More...

Detailed Description

Handles update checking for the A* Pathfinding Project.

Static Public Member Functions

static void CheckForUpdatesNow ()
 Initiate a check for updates now, regardless of when the last check was done.
 
static string GetURL (string tag)
 

Properties

static System.DateTime lastUpdateCheck [get, set]
 Last time an update check was made.
 
static System.Version latestBetaVersion [get, set]
 Latest beta version of the A* Pathfinding Project.
 
static System.Version latestVersion [get, set]
 Latest version of the A* Pathfinding Project.
 
static string latestVersionDescription [get, set]
 Summary of the latest update.
 

Static Private Member Functions

static AstarUpdateChecker ()
 
static bool CheckForUpdates ()
 Checks for updates if there was some time since last check.
 
static void DownloadVersionInfo ()
 
static void ParseServerMessage (string result)
 
static void RefreshServerMessage ()
 
static void ShowUpdateWindowIfRelevant ()
 
static void UpdateCheckCompleted (string result)
 Handles the data from the update page.
 
static void UpdateCheckLoop ()
 Checking for updates...
 

Private Attributes

const double updateCheckRate = 1F
 Number of days between update checks.
 
const string updateURL = "http://www.arongranberg.com/astar/version.php"
 URL to the version file containing the latest version number.
 

Static Private Attributes

static System.DateTime _lastUpdateCheck
 
static bool _lastUpdateCheckRead
 
static System.Version _latestBetaVersion
 
static System.Version _latestVersion
 
static string _latestVersionDescription
 Description of the latest update of the A* Pathfinding Project.
 
static Dictionary< string, string > astarServerData
 Holds various URLs and text for the editor.
 
static bool hasParsedServerMessage
 
static WWW updateCheckDownload
 Used for downloading new version information.
 

Constructor & Destructor Documentation

static AstarUpdateChecker ( )
staticprivate

Member Function Documentation

static bool CheckForUpdates ( )
staticprivate

Checks for updates if there was some time since last check.

It must be called repeatedly to ensure that the result is processed.

Returns
True if an update check is progressing (WWW request)
static void CheckForUpdatesNow ( )
static

Initiate a check for updates now, regardless of when the last check was done.

static void DownloadVersionInfo ( )
staticprivate
static string GetURL ( string  tag)
static
static void ParseServerMessage ( string  result)
staticprivate
static void RefreshServerMessage ( )
staticprivate
static void ShowUpdateWindowIfRelevant ( )
staticprivate
static void UpdateCheckCompleted ( string  result)
staticprivate

Handles the data from the update page.

static void UpdateCheckLoop ( )
staticprivate

Checking for updates...

Should be called from EditorApplication.update

Member Data Documentation

System.DateTime _lastUpdateCheck
staticprivate
bool _lastUpdateCheckRead
staticprivate
System.Version _latestBetaVersion
staticprivate
System.Version _latestVersion
staticprivate
string _latestVersionDescription
staticprivate

Description of the latest update of the A* Pathfinding Project.

Dictionary<string, string> astarServerData
staticprivate
Initial value:
= new Dictionary<string, string> {
{ "URL:modifiers", "http://www.arongranberg.com/astar/docs/modifiers.php" },
{ "URL:astarpro", "http://arongranberg.com/unity/a-pathfinding/astarpro/" },
{ "URL:documentation", "http://arongranberg.com/astar/docs/" },
{ "URL:findoutmore", "http://arongranberg.com/astar" },
{ "URL:download", "http://arongranberg.com/unity/a-pathfinding/download" },
{ "URL:changelog", "http://arongranberg.com/astar/docs/changelog.php" },
{ "URL:tags", "http://arongranberg.com/astar/docs/tags.php" },
{ "URL:homepage", "http://arongranberg.com/astar/" }
}

Holds various URLs and text for the editor.

This info can be updated when a check for new versions is done to ensure that there are no invalid links.

bool hasParsedServerMessage
staticprivate
WWW updateCheckDownload
staticprivate

Used for downloading new version information.

const double updateCheckRate = 1F
private

Number of days between update checks.

const string updateURL = "http://www.arongranberg.com/astar/version.php"
private

URL to the version file containing the latest version number.

Property Documentation

System.DateTime lastUpdateCheck
staticgetset

Last time an update check was made.

System.Version latestBetaVersion
staticgetset

Latest beta version of the A* Pathfinding Project.

System.Version latestVersion
staticgetset

Latest version of the A* Pathfinding Project.

string latestVersionDescription
staticgetset

Summary of the latest update.


The documentation for this class was generated from the following file: