Sort AI list by name, and rename Test Bot so it's a bit clearer and is listed first

This was SVN commit r9031.
This commit is contained in:
Ykkrosh 2011-03-05 16:55:58 +00:00
parent c0383ffc30
commit 08d5e7bf66
2 changed files with 7 additions and 2 deletions

View File

@ -76,6 +76,11 @@ function initMain()
// Load AI list
g_AIs = Engine.GetAIs();
// Sort AIs by displayed name
g_AIs.sort(function (a, b) {
return a.data.name < b.data.name ? -1 : b.data.name < a.data.name ? +1 : 0;
});
// Get default player data - remove gaia
var pDefs = initPlayerDefaults();
pDefs.shift();

View File

@ -1,5 +1,5 @@
{
"name": "Test Bot",
"description": "A simple AI for testing the framework.",
"name": "Demo Bot",
"description": "A simple opponent, mainly designed for testing our AI scripting framework.",
"constructor": "TestBotAI"
}