28 template <> int Return<AIVehicleList_Station *>(HSQUIRRELVM vm, AIVehicleList_Station *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Station", res, NULL, DefSQDestructorCallback<AIVehicleList_Station>); return 1; } |
28 template <> int Return<AIVehicleList_Station *>(HSQUIRRELVM vm, AIVehicleList_Station *res) { if (res == NULL) { sq_pushnull(vm); return 1; } res->AddRef(); Squirrel::CreateClassInstanceVM(vm, "AIVehicleList_Station", res, NULL, DefSQDestructorCallback<AIVehicleList_Station>); return 1; } |
29 }; // namespace SQConvert |
29 }; // namespace SQConvert |
30 |
30 |
31 void SQAIVehicleList_Station_Register(Squirrel *engine) { |
31 void SQAIVehicleList_Station_Register(Squirrel *engine) { |
32 DefSQClass <AIVehicleList_Station> SQAIVehicleList_Station("AIVehicleList_Station"); |
32 DefSQClass <AIVehicleList_Station> SQAIVehicleList_Station("AIVehicleList_Station"); |
33 SQAIVehicleList_Station.PreRegister(engine, "AIVehicleList"); |
33 SQAIVehicleList_Station.PreRegister(engine, "AIAbstractList"); |
34 SQAIVehicleList_Station.AddConstructor<void (AIVehicleList_Station::*)(StationID station_id), 2>(engine, "xi"); |
34 SQAIVehicleList_Station.AddConstructor<void (AIVehicleList_Station::*)(StationID station_id), 2>(engine, "xi"); |
35 |
35 |
36 SQAIVehicleList_Station.DefSQStaticMethod(engine, &AIVehicleList_Station::GetClassName, "GetClassName", 1, "x"); |
36 SQAIVehicleList_Station.DefSQStaticMethod(engine, &AIVehicleList_Station::GetClassName, "GetClassName", 1, "x"); |
37 |
37 |
38 SQAIVehicleList_Station.PostRegister(engine); |
38 SQAIVehicleList_Station.PostRegister(engine); |