A* Pathfinding Project  4.1.19
The A* Pathfinding Project for Unity 3D
APIUpgrader Class Reference

Helper for upgrading source code to use newer APIs. More...

Detailed Description

Helper for upgrading source code to use newer APIs.

Classes

class  UpgradeItem
 

Static Private Member Functions

static APIUpgrader ()
 
static void HandlelogMessageReceived (string condition, string stackTrace, LogType type)
 
static void OnEditorUpdate ()
 
static string TryUpgrade (List< UpgradeItem > items, System.IO.StreamReader stream)
 
static void TryUpgrade ()
 
static void TryUpgradeFile (List< UpgradeItem > items)
 

Private Attributes

const string project = "A* Pathfinding Project"
 
const string tag = "Astar"
 

Static Private Attributes

static readonly string dataFile = Application.temporaryCachePath + "/astar_api_upgrader.tmp"
 
static readonly Regex re = new Regex(@"(.*)\((\d+),(\d+)\): warning CS0618.*\[" + tag + @"Upgradable: '(.+)' -> '(.+)'\]", RegexOptions.CultureInvariant | RegexOptions.Multiline)
 
static readonly System.Text.StringBuilder tempFileOutput = new System.Text.StringBuilder("[")
 
static List< UpgradeItemupgradeItems = new List<UpgradeItem>()
 

Constructor & Destructor Documentation

◆ APIUpgrader()

static APIUpgrader ( )
staticprivate

Member Function Documentation

◆ HandlelogMessageReceived()

static void HandlelogMessageReceived ( string  condition,
string  stackTrace,
LogType  type 
)
staticprivate

◆ OnEditorUpdate()

static void OnEditorUpdate ( )
staticprivate

◆ TryUpgrade() [1/2]

static string TryUpgrade ( List< UpgradeItem items,
System.IO.StreamReader  stream 
)
staticprivate

◆ TryUpgrade() [2/2]

static void TryUpgrade ( )
staticprivate

◆ TryUpgradeFile()

static void TryUpgradeFile ( List< UpgradeItem items)
staticprivate

Member Data Documentation

◆ dataFile

readonly string dataFile = Application.temporaryCachePath + "/astar_api_upgrader.tmp"
staticprivate

◆ project

const string project = "A* Pathfinding Project"
private

◆ re

readonly Regex re = new Regex(@"(.*)\((\d+),(\d+)\): warning CS0618.*\[" + tag + @"Upgradable: '(.+)' -> '(.+)'\]", RegexOptions.CultureInvariant | RegexOptions.Multiline)
staticprivate

◆ tag

const string tag = "Astar"
private

◆ tempFileOutput

readonly System.Text.StringBuilder tempFileOutput = new System.Text.StringBuilder("[")
staticprivate

◆ upgradeItems

List<UpgradeItem> upgradeItems = new List<UpgradeItem>()
staticprivate

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