src/ai/api/ai_accounting.hpp
branchnoai
changeset 9532 539c48d64eea
parent 9530 5b93bc87cc5e
child 9539 7416d0694d3a
equal deleted inserted replaced
9531:6a2e35738593 9532:539c48d64eea
    60 void SQAIAccountingRegister(Squirrel *engine) {
    60 void SQAIAccountingRegister(Squirrel *engine) {
    61 	DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
    61 	DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
    62 	SQAIAccounting.PreRegister(engine);
    62 	SQAIAccounting.PreRegister(engine);
    63 	SQAIAccounting.AddConstructor(engine);
    63 	SQAIAccounting.AddConstructor(engine);
    64 
    64 
       
    65 	SQAIAccounting.DefSQStaticMethod(engine, &AIAccounting::GetClassName, "GetClassName");
       
    66 
    65 	SQAIAccounting.DefSQMethod(engine, &AIAccounting::GetCosts,   "GetCosts");
    67 	SQAIAccounting.DefSQMethod(engine, &AIAccounting::GetCosts,   "GetCosts");
    66 	SQAIAccounting.DefSQMethod(engine, &AIAccounting::ResetCosts, "ResetCosts");
    68 	SQAIAccounting.DefSQMethod(engine, &AIAccounting::ResetCosts, "ResetCosts");
    67 
    69 
    68 	SQAIAccounting.PostRegister(engine);
    70 	SQAIAccounting.PostRegister(engine);
    69 }
    71 }