src/ai/api/ai_tilelist_valuator.hpp.sq
branchnoai
changeset 9658 e7675771bca4
parent 9657 f2c6e332d8bc
child 9673 ee4f133c84ec
equal deleted inserted replaced
9657:f2c6e332d8bc 9658:e7675771bca4
    99 }; // namespace SQConvert
    99 }; // namespace SQConvert
   100 
   100 
   101 void SQAITileListCargoAcceptanceRegister(Squirrel *engine) {
   101 void SQAITileListCargoAcceptanceRegister(Squirrel *engine) {
   102 	DefSQClass <AITileListCargoAcceptance> SQAITileListCargoAcceptance("AITileListCargoAcceptance");
   102 	DefSQClass <AITileListCargoAcceptance> SQAITileListCargoAcceptance("AITileListCargoAcceptance");
   103 	SQAITileListCargoAcceptance.PreRegister(engine);
   103 	SQAITileListCargoAcceptance.PreRegister(engine);
   104 	SQAITileListCargoAcceptance.AddConstructor<void (AITileListCargoAcceptance::*)(CargoID cargo_type), 2>(engine, "xi");
   104 	SQAITileListCargoAcceptance.AddConstructor<void (AITileListCargoAcceptance::*)(CargoID cargo_type, uint width, uint height, uint radius), 5>(engine, "xiiii");
   105 
   105 
   106 	SQAITileListCargoAcceptance.DefSQStaticMethod(engine, &AITileListCargoAcceptance::GetClassName, "GetClassName", 1, "x");
   106 	SQAITileListCargoAcceptance.DefSQStaticMethod(engine, &AITileListCargoAcceptance::GetClassName, "GetClassName", 1, "x");
   107 
   107 
   108 	SQAITileListCargoAcceptance.PostRegister(engine);
   108 	SQAITileListCargoAcceptance.PostRegister(engine);
   109 }
   109 }