53 |
53 |
54 void SQAICargoRegister(Squirrel *engine) { |
54 void SQAICargoRegister(Squirrel *engine) { |
55 DefSQClass <AICargo> SQAICargo("AICargo"); |
55 DefSQClass <AICargo> SQAICargo("AICargo"); |
56 SQAICargo.PreRegister(engine); |
56 SQAICargo.PreRegister(engine); |
57 SQAICargo.AddConstructor(engine); |
57 SQAICargo.AddConstructor(engine); |
|
58 |
58 SQAICargo.DefSQFunction(engine, &AICargo::IsValidCargo, "IsValidCargo"); |
59 SQAICargo.DefSQFunction(engine, &AICargo::IsValidCargo, "IsValidCargo"); |
59 SQAICargo.DefSQFunction(engine, &AICargo::GetCargoLabel, "GetCargoLabel"); |
60 SQAICargo.DefSQFunction(engine, &AICargo::GetCargoLabel, "GetCargoLabel"); |
60 SQAICargo.DefSQFunction(engine, &AICargo::IsFreight, "IsFreight"); |
61 SQAICargo.DefSQFunction(engine, &AICargo::IsFreight, "IsFreight"); |
61 SQAICargo.DefSQFunction(engine, &AICargo::GetCargoIncome, "GetCargoIncome"); |
62 SQAICargo.DefSQFunction(engine, &AICargo::GetCargoIncome, "GetCargoIncome"); |
|
63 |
62 SQAICargo.PostRegister(engine); |
64 SQAICargo.PostRegister(engine); |
63 } |
65 } |
64 #endif /* DEFINE_SQUIRREL_CLASS */ |
66 #endif /* DEFINE_SQUIRREL_CLASS */ |
65 |
67 |
66 #endif /* AI_CARGO_HPP */ |
68 #endif /* AI_CARGO_HPP */ |