117 void SQAIRoadRegister(Squirrel *engine) { |
117 void SQAIRoadRegister(Squirrel *engine) { |
118 DefSQClass <AIRoad> SQAIRoad("AIRoad"); |
118 DefSQClass <AIRoad> SQAIRoad("AIRoad"); |
119 SQAIRoad.PreRegister(engine); |
119 SQAIRoad.PreRegister(engine); |
120 SQAIRoad.AddConstructor(engine); |
120 SQAIRoad.AddConstructor(engine); |
121 |
121 |
122 SQAIRoad.DefSQStaticMethod(engine, &AIRoad::GetClassName, "GetClassName"); |
122 SQAIRoad.DefSQStaticMethod(engine, &AIRoad::GetClassName, "GetClassName", 1, "x"); |
123 |
123 |
124 SQAIRoad.DefSQMethod(engine, &AIRoad::IsRoadTile, "IsRoadTile"); |
124 SQAIRoad.DefSQMethod(engine, &AIRoad::IsRoadTile, "IsRoadTile", 2, "xi"); |
125 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoad, "BuildRoad"); |
125 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoad, "BuildRoad", 3, "xii"); |
126 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoadDepot, "BuildRoadDepot"); |
126 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoadDepot, "BuildRoadDepot", 3, "xii"); |
127 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoadStation, "BuildRoadStation"); |
127 SQAIRoad.DefSQMethod(engine, &AIRoad::BuildRoadStation, "BuildRoadStation", 5, "xiibb"); |
128 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoad, "RemoveRoad"); |
128 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoad, "RemoveRoad", 3, "xii"); |
129 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoadDepot, "RemoveRoadDepot"); |
129 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoadDepot, "RemoveRoadDepot", 2, "xi"); |
130 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoadStation, "RemoveRoadStation"); |
130 SQAIRoad.DefSQMethod(engine, &AIRoad::RemoveRoadStation, "RemoveRoadStation", 2, "xi"); |
131 |
131 |
132 SQAIRoad.PostRegister(engine); |
132 SQAIRoad.PostRegister(engine); |
133 } |
133 } |
134 #endif /* DEFINE_SQUIRREL_CLASS */ |
134 #endif /* DEFINE_SQUIRREL_CLASS */ |
135 |
135 |