mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r15486) -Change [API CHANGE]: Remove AITown::GetMaxTownID.
This commit is contained in:
parent
f20378dcf7
commit
320018aac1
@ -14,11 +14,6 @@
|
|||||||
#include "../../station_base.h"
|
#include "../../station_base.h"
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
/* static */ TownID AITown::GetMaxTownID()
|
|
||||||
{
|
|
||||||
return ::GetMaxTownIndex();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* static */ int32 AITown::GetTownCount()
|
/* static */ int32 AITown::GetTownCount()
|
||||||
{
|
{
|
||||||
return ::GetNumTowns();
|
return ::GetNumTowns();
|
||||||
|
@ -96,13 +96,6 @@ public:
|
|||||||
ROAD_LAYOUT_INVALID = -1, ///< The layout for invalid towns.
|
ROAD_LAYOUT_INVALID = -1, ///< The layout for invalid towns.
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the maximum town index; there are no valid towns with a higher index.
|
|
||||||
* @return The maximum town index.
|
|
||||||
* @post Return value is always non-negative.
|
|
||||||
*/
|
|
||||||
static TownID GetMaxTownID();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the number of towns. This is different than GetMaxTownID()
|
* Gets the number of towns. This is different than GetMaxTownID()
|
||||||
* because of the way OpenTTD works internally.
|
* because of the way OpenTTD works internally.
|
||||||
|
@ -49,7 +49,6 @@ void SQAITown_Register(Squirrel *engine) {
|
|||||||
SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_3x3, "ROAD_LAYOUT_3x3");
|
SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_3x3, "ROAD_LAYOUT_3x3");
|
||||||
SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_INVALID, "ROAD_LAYOUT_INVALID");
|
SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_INVALID, "ROAD_LAYOUT_INVALID");
|
||||||
|
|
||||||
SQAITown.DefSQStaticMethod(engine, &AITown::GetMaxTownID, "GetMaxTownID", 1, "?");
|
|
||||||
SQAITown.DefSQStaticMethod(engine, &AITown::GetTownCount, "GetTownCount", 1, "?");
|
SQAITown.DefSQStaticMethod(engine, &AITown::GetTownCount, "GetTownCount", 1, "?");
|
||||||
SQAITown.DefSQStaticMethod(engine, &AITown::IsValidTown, "IsValidTown", 2, "?i");
|
SQAITown.DefSQStaticMethod(engine, &AITown::IsValidTown, "IsValidTown", 2, "?i");
|
||||||
SQAITown.DefSQStaticMethod(engine, &AITown::GetName, "GetName", 2, "?i");
|
SQAITown.DefSQStaticMethod(engine, &AITown::GetName, "GetName", 2, "?i");
|
||||||
|
Loading…
Reference in New Issue
Block a user