src/ai/api/ai_list.hpp.sq
branchnoai
changeset 9635 9ee82e091af7
parent 9610 5cebcd43a1ec
child 9664 c5741021bf59
equal deleted inserted replaced
9634:e359d82f0652 9635:9ee82e091af7
     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, 1, "x");
    14 	SQAIList.AddConstructor<void (AIList::*)(), 1>(engine, "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");