--- a/src/ai/api/ai_town.hpp Sun Mar 25 16:10:40 2007 +0000
+++ b/src/ai/api/ai_town.hpp Sun Mar 25 16:32:02 2007 +0000
@@ -78,12 +78,12 @@
SQAITown.PreRegister(engine);
SQAITown.AddConstructor(engine);
- SQAITown.DefSQFunction(engine, &AITown::GetMaxTownID, "GetMaxTownID");
- SQAITown.DefSQFunction(engine, &AITown::GetTownCount, "GetTownCount");
- SQAITown.DefSQFunction(engine, &AITown::IsValidTown, "IsValidTown");
- SQAITown.DefSQFunction(engine, &AITown::GetName, "GetName");
- SQAITown.DefSQFunction(engine, &AITown::GetPopulation, "GetPopulation");
- SQAITown.DefSQFunction(engine, &AITown::GetLocation, "GetLocation");
+ SQAITown.DefSQMethod(engine, &AITown::GetMaxTownID, "GetMaxTownID");
+ SQAITown.DefSQMethod(engine, &AITown::GetTownCount, "GetTownCount");
+ SQAITown.DefSQMethod(engine, &AITown::IsValidTown, "IsValidTown");
+ SQAITown.DefSQMethod(engine, &AITown::GetName, "GetName");
+ SQAITown.DefSQMethod(engine, &AITown::GetPopulation, "GetPopulation");
+ SQAITown.DefSQMethod(engine, &AITown::GetLocation, "GetLocation");
SQAITown.PostRegister(engine);
}