mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 07:29:10 +00:00
(svn r16585) -Add [NoAI]: AIBuoyList to get a list of all buoys
This commit is contained in:
@@ -804,6 +804,16 @@ function Regression::Marine()
|
||||
print(" IsCanalTile(): " + AIMarine.IsCanalTile(32127));
|
||||
print(" GetBankBalance(): " + AICompany.GetBankBalance(AICompany.COMPANY_SELF));
|
||||
|
||||
local list = AIBuoyList();
|
||||
print("");
|
||||
print("--AIBuoyList--");
|
||||
print(" Count(): " + list.Count());
|
||||
print(" Location ListDump:");
|
||||
for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
|
||||
print(" " + i);
|
||||
}
|
||||
print("");
|
||||
|
||||
print(" RemoveWaterDepot(): " + AIMarine.RemoveWaterDepot(28479));
|
||||
print(" RemoveDock(): " + AIMarine.RemoveDock(29253));
|
||||
print(" RemoveBuoy(): " + AIMarine.RemoveBuoy(28481));
|
||||
|
@@ -7088,6 +7088,12 @@
|
||||
IsLockTile(): true
|
||||
IsCanalTile(): true
|
||||
GetBankBalance(): 805063
|
||||
|
||||
--AIBuoyList--
|
||||
Count(): 1
|
||||
Location ListDump:
|
||||
28481
|
||||
|
||||
RemoveWaterDepot(): true
|
||||
RemoveDock(): true
|
||||
RemoveBuoy(): true
|
||||
|
Reference in New Issue
Block a user