summaryrefslogtreecommitdiff
path: root/bin/ai/library/pathfinder/rail
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-15 15:56:10 +0000
committertruebrain <truebrain@openttd.org>2009-01-15 15:56:10 +0000
commit103cd2a5ed5df7f166c2024e0e4e85d4790e3529 (patch)
tree336201bee848644fdb9096a06f1ffec998951171 /bin/ai/library/pathfinder/rail
parentd62a85f2ce2dd7f366b8d3a6610ee70046ee928a (diff)
downloadopenttd-103cd2a5ed5df7f166c2024e0e4e85d4790e3529.tar.xz
(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
Diffstat (limited to 'bin/ai/library/pathfinder/rail')
-rw-r--r--bin/ai/library/pathfinder/rail/library.nut1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ai/library/pathfinder/rail/library.nut b/bin/ai/library/pathfinder/rail/library.nut
index 155adaad1..8f0dbad08 100644
--- a/bin/ai/library/pathfinder/rail/library.nut
+++ b/bin/ai/library/pathfinder/rail/library.nut
@@ -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());