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"); |