(svn r15091) -Add [NoAI] [API CHANGE]: introduce GetCategory() as a requirement for every library.nut, to indicate in which category it belongs. Currently the directory indicates the category, but this doesn't allow planned future additions
This commit is contained in:
@@ -8,6 +8,7 @@ class Rail extends AILibrary {
|
||||
function GetVersion() { return 1; }
|
||||
function GetDate() { return "2008-09-22"; }
|
||||
function CreateInstance() { return "Rail"; }
|
||||
function GetCategory() { return "Pathfinder"; }
|
||||
}
|
||||
|
||||
RegisterLibrary(Rail());
|
||||
|
@@ -8,6 +8,7 @@ class Road extends AILibrary {
|
||||
function GetVersion() { return 3; }
|
||||
function GetDate() { return "2008-06-18"; }
|
||||
function CreateInstance() { return "Road"; }
|
||||
function GetCategory() { return "Pathfinder"; }
|
||||
}
|
||||
|
||||
RegisterLibrary(Road());
|
||||
|
Reference in New Issue
Block a user