diff options
author | rubidium <rubidium@openttd.org> | 2009-02-12 22:25:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-12 22:25:53 +0000 |
commit | dea3490b2fb3ed9bf67eafd45b0a524a7ea15750 (patch) | |
tree | 3e221a4c240d5e3816d46d5d1e22664047944955 /src/ai/api/ai_cargo.hpp.sq | |
parent | 3314ef39d21f8a2c0ffbe2c39d0d12ca73b041a2 (diff) | |
download | openttd-dea3490b2fb3ed9bf67eafd45b0a524a7ea15750.tar.xz |
(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName.
Diffstat (limited to 'src/ai/api/ai_cargo.hpp.sq')
-rw-r--r-- | src/ai/api/ai_cargo.hpp.sq | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ai/api/ai_cargo.hpp.sq b/src/ai/api/ai_cargo.hpp.sq index 015d112b7..255f89a49 100644 --- a/src/ai/api/ai_cargo.hpp.sq +++ b/src/ai/api/ai_cargo.hpp.sq @@ -40,13 +40,12 @@ void SQAICargo_Register(Squirrel *engine) { SQAICargo.DefSQConst(engine, AICargo::TE_WATER, "TE_WATER"); SQAICargo.DefSQConst(engine, AICargo::TE_FOOD, "TE_FOOD"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::GetClassName, "GetClassName", 1, "x"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::IsValidCargo, "IsValidCargo", 2, "xi"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::GetCargoLabel, "GetCargoLabel", 2, "xi"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::IsFreight, "IsFreight", 2, "xi"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::HasCargoClass, "HasCargoClass", 3, "xii"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::GetTownEffect, "GetTownEffect", 2, "xi"); - SQAICargo.DefSQStaticMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome", 4, "xiii"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::IsValidCargo, "IsValidCargo", 2, "?i"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::GetCargoLabel, "GetCargoLabel", 2, "?i"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::IsFreight, "IsFreight", 2, "?i"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::HasCargoClass, "HasCargoClass", 3, "?ii"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::GetTownEffect, "GetTownEffect", 2, "?i"); + SQAICargo.DefSQStaticMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome", 4, "?iii"); SQAICargo.PostRegister(engine); } |