A* Pathfinding Project  4.1.12
The A* Pathfinding Project for Unity 3D
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. More...
 
static string GetURL (string tag)
 

Properties

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

Static Private Member Functions

static AstarUpdateChecker ()
 
static bool CheckForUpdates ()
 Checks for updates if there was some time since last check. More...
 
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. More...
 
static void UpdateCheckLoop ()
 Checking for updates... More...
 

Private Attributes

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

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. More...
 
static Dictionary< string, string > astarServerData
 Holds various URLs and text for the editor. More...
 
static bool hasParsedServerMessage
 
static WWW updateCheckDownload
 Used for downloading new version information. More...
 

Constructor & Destructor Documentation

◆ AstarUpdateChecker()

static AstarUpdateChecker ( )
staticprivate

Member Function Documentation

◆ CheckForUpdates()

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)

◆ CheckForUpdatesNow()

static void CheckForUpdatesNow ( )
static

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

◆ DownloadVersionInfo()

static void DownloadVersionInfo ( )
staticprivate

◆ GetURL()

static string GetURL ( string  tag)
static

◆ ParseServerMessage()

static void ParseServerMessage ( string  result)
staticprivate

◆ RefreshServerMessage()

static void RefreshServerMessage ( )
staticprivate

◆ ShowUpdateWindowIfRelevant()

static void ShowUpdateWindowIfRelevant ( )
staticprivate

◆ UpdateCheckCompleted()

static void UpdateCheckCompleted ( string  result)
staticprivate

Handles the data from the update page.

◆ UpdateCheckLoop()

static void UpdateCheckLoop ( )
staticprivate

Checking for updates...

Should be called from EditorApplication.update

Member Data Documentation

◆ _lastUpdateCheck

System.DateTime _lastUpdateCheck
staticprivate

◆ _lastUpdateCheckRead

bool _lastUpdateCheckRead
staticprivate

◆ _latestBetaVersion

System.Version _latestBetaVersion
staticprivate

◆ _latestVersion

System.Version _latestVersion
staticprivate

◆ _latestVersionDescription

string _latestVersionDescription
staticprivate

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

◆ astarServerData

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.

◆ hasParsedServerMessage

bool hasParsedServerMessage
staticprivate

◆ updateCheckDownload

WWW updateCheckDownload
staticprivate

Used for downloading new version information.

◆ updateCheckRate

const double updateCheckRate = 1F
private

Number of days between update checks.

◆ updateURL

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

URL to the version file containing the latest version number.

Property Documentation

◆ lastUpdateCheck

System.DateTime lastUpdateCheck
staticgetprivate set

Last time an update check was made.

◆ latestBetaVersion

System.Version latestBetaVersion
staticgetprivate set

Latest beta version of the A* Pathfinding Project.

◆ latestVersion

System.Version latestVersion
staticgetprivate set

Latest version of the A* Pathfinding Project.

◆ latestVersionDescription

string latestVersionDescription
staticgetprivate set

Summary of the latest update.


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