src/ai/api/ai_road.hpp
branchnoai
changeset 9462 a4f49aab1367
parent 9453 727ff178a582
child 9503 821422c9ca59
equal deleted inserted replaced
9461:ab1079656642 9462:a4f49aab1367
   106 #ifdef DEFINE_SQUIRREL_CLASS
   106 #ifdef DEFINE_SQUIRREL_CLASS
   107 void SQAIRoadRegister(Squirrel *engine) {
   107 void SQAIRoadRegister(Squirrel *engine) {
   108 	DefSQClass <AIRoad> SQAIRoad("AIRoad");
   108 	DefSQClass <AIRoad> SQAIRoad("AIRoad");
   109 	SQAIRoad.PreRegister(engine);
   109 	SQAIRoad.PreRegister(engine);
   110 	SQAIRoad.AddConstructor(engine);
   110 	SQAIRoad.AddConstructor(engine);
       
   111 	SQAIRoad.DefSQFunction(engine, &AIRoad::IsRoadTile,        "IsRoadTile");
   111 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoad,         "BuildRoad");
   112 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoad,         "BuildRoad");
   112 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoadDepot,    "BuildRoadDepot");
   113 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoadDepot,    "BuildRoadDepot");
   113 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoadStation,  "BuildRoadStation");
   114 	SQAIRoad.DefSQFunction(engine, &AIRoad::BuildRoadStation,  "BuildRoadStation");
   114 	SQAIRoad.DefSQFunction(engine, &AIRoad::RemoveRoad,        "RemoveRoad");
   115 	SQAIRoad.DefSQFunction(engine, &AIRoad::RemoveRoad,        "RemoveRoad");
   115 	SQAIRoad.DefSQFunction(engine, &AIRoad::RemoveRoadDepot,   "RemoveRoadDepot");
   116 	SQAIRoad.DefSQFunction(engine, &AIRoad::RemoveRoadDepot,   "RemoveRoadDepot");