src/ai/api/ai_list.hpp.sq
branchnoai
changeset 9610 5cebcd43a1ec
parent 9609 f0dbf5850145
child 9635 9ee82e091af7
equal deleted inserted replaced
9609:f0dbf5850145 9610:5cebcd43a1ec
     9 }; // namespace SQConvert
     9 }; // namespace SQConvert
    10 
    10 
    11 void SQAIListRegister(Squirrel *engine) {
    11 void SQAIListRegister(Squirrel *engine) {
    12 	DefSQClass <AIList> SQAIList("AIList");
    12 	DefSQClass <AIList> SQAIList("AIList");
    13 	SQAIList.PreRegister(engine, "AIAbstractList");
    13 	SQAIList.PreRegister(engine, "AIAbstractList");
    14 	SQAIList.AddConstructor<void (AIList::*)()>(engine);
    14 	SQAIList.AddConstructor<void (AIList::*)()>(engine, 1, "x");
    15 
    15 
    16 	SQAIList.DefSQStaticMethod(engine, &AIList::GetClassName, "GetClassName", 1, "x");
    16 	SQAIList.DefSQStaticMethod(engine, &AIList::GetClassName, "GetClassName", 1, "x");
    17 
    17 
    18 	SQAIList.DefSQMethod(engine, &AIList::AddItem,    "AddItem",    2, "xi");
    18 	SQAIList.DefSQMethod(engine, &AIList::AddItem,    "AddItem",    2, "xi");
    19 	SQAIList.DefSQMethod(engine, &AIList::RemoveItem, "RemoveItem", 2, "xi");
    19 	SQAIList.DefSQMethod(engine, &AIList::RemoveItem, "RemoveItem", 2, "xi");