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_tilelist.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_tilelist.hpp.sq')
-rw-r--r-- | src/ai/api/ai_tilelist.hpp.sq | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ai/api/ai_tilelist.hpp.sq b/src/ai/api/ai_tilelist.hpp.sq index 4e6bfdf30..4bd278947 100644 --- a/src/ai/api/ai_tilelist.hpp.sq +++ b/src/ai/api/ai_tilelist.hpp.sq @@ -17,8 +17,6 @@ void SQAITileList_Register(Squirrel *engine) { SQAITileList.PreRegister(engine, "AIAbstractList"); SQAITileList.AddConstructor<void (AITileList::*)(), 1>(engine, "x"); - SQAITileList.DefSQStaticMethod(engine, &AITileList::GetClassName, "GetClassName", 1, "x"); - SQAITileList.DefSQMethod(engine, &AITileList::AddRectangle, "AddRectangle", 3, "xii"); SQAITileList.DefSQMethod(engine, &AITileList::AddTile, "AddTile", 2, "xi"); SQAITileList.DefSQMethod(engine, &AITileList::RemoveRectangle, "RemoveRectangle", 3, "xii"); @@ -41,8 +39,6 @@ void SQAITileList_IndustryAccepting_Register(Squirrel *engine) { SQAITileList_IndustryAccepting.PreRegister(engine, "AITileList"); SQAITileList_IndustryAccepting.AddConstructor<void (AITileList_IndustryAccepting::*)(IndustryID industry_id, uint radius), 3>(engine, "xii"); - SQAITileList_IndustryAccepting.DefSQStaticMethod(engine, &AITileList_IndustryAccepting::GetClassName, "GetClassName", 1, "x"); - SQAITileList_IndustryAccepting.PostRegister(engine); } @@ -60,8 +56,6 @@ void SQAITileList_IndustryProducing_Register(Squirrel *engine) { SQAITileList_IndustryProducing.PreRegister(engine, "AITileList"); SQAITileList_IndustryProducing.AddConstructor<void (AITileList_IndustryProducing::*)(IndustryID industry_id, uint radius), 3>(engine, "xii"); - SQAITileList_IndustryProducing.DefSQStaticMethod(engine, &AITileList_IndustryProducing::GetClassName, "GetClassName", 1, "x"); - SQAITileList_IndustryProducing.PostRegister(engine); } @@ -79,7 +73,5 @@ void SQAITileList_StationType_Register(Squirrel *engine) { SQAITileList_StationType.PreRegister(engine, "AITileList"); SQAITileList_StationType.AddConstructor<void (AITileList_StationType::*)(StationID station_id, AIStation::StationType station_type), 3>(engine, "xii"); - SQAITileList_StationType.DefSQStaticMethod(engine, &AITileList_StationType::GetClassName, "GetClassName", 1, "x"); - SQAITileList_StationType.PostRegister(engine); } |