src/ai/api/ai_cargo.hpp
branchnoai
changeset 9526 a4ad60ba03be
parent 9524 283d23931bb4
child 9529 5f26f4bc574b
equal deleted inserted replaced
9525:1d6c509b56ee 9526:a4ad60ba03be
    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 */