src/ai/api/ai_cargo.hpp
branchnoai
changeset 9541 4bb34cea7fad
parent 9532 539c48d64eea
child 9594 5009a30f320a
equal deleted inserted replaced
9540:505fcc067ade 9541:4bb34cea7fad
    59 void SQAICargoRegister(Squirrel *engine) {
    59 void SQAICargoRegister(Squirrel *engine) {
    60 	DefSQClass <AICargo> SQAICargo("AICargo");
    60 	DefSQClass <AICargo> SQAICargo("AICargo");
    61 	SQAICargo.PreRegister(engine);
    61 	SQAICargo.PreRegister(engine);
    62 	SQAICargo.AddConstructor(engine);
    62 	SQAICargo.AddConstructor(engine);
    63 
    63 
    64 	SQAICargo.DefSQStaticMethod(engine, &AICargo::GetClassName, "GetClassName");
    64 	SQAICargo.DefSQStaticMethod(engine, &AICargo::GetClassName, "GetClassName", 1, "x");
    65 	SQAICargo.DefSQStaticMethod(engine, &AICargo::IsValidCargo, "IsValidCargo");
    65 	SQAICargo.DefSQStaticMethod(engine, &AICargo::IsValidCargo, "IsValidCargo", 2, "xi");
    66 
    66 
    67 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoLabel,  "GetCargoLabel");
    67 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoLabel,  "GetCargoLabel",  2, "xi");
    68 	SQAICargo.DefSQMethod(engine, &AICargo::IsFreight,      "IsFreight");
    68 	SQAICargo.DefSQMethod(engine, &AICargo::IsFreight,      "IsFreight",      2, "xi");
    69 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome");
    69 	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome", 4, "xiii");
    70 
    70 
    71 	SQAICargo.PostRegister(engine);
    71 	SQAICargo.PostRegister(engine);
    72 }
    72 }
    73 #endif /* DEFINE_SQUIRREL_CLASS */
    73 #endif /* DEFINE_SQUIRREL_CLASS */
    74 
    74