src/ai/api/ai_accounting.hpp
branchnoai
changeset 9462 a4f49aab1367
parent 9452 4c5eedbc3ba9
child 9520 f7cf8bea10db
equal deleted inserted replaced
9461:ab1079656642 9462:a4f49aab1367
    49 #ifdef DEFINE_SQUIRREL_CLASS
    49 #ifdef DEFINE_SQUIRREL_CLASS
    50 void SQAIAccountingRegister(Squirrel *engine) {
    50 void SQAIAccountingRegister(Squirrel *engine) {
    51 	DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
    51 	DefSQClass <AIAccounting> SQAIAccounting("AIAccounting");
    52 	SQAIAccounting.PreRegister(engine);
    52 	SQAIAccounting.PreRegister(engine);
    53 	SQAIAccounting.AddConstructor(engine);
    53 	SQAIAccounting.AddConstructor(engine);
    54 	SQAIAccounting.DefSQFunction(engine, &AIAccounting::GetCosts, "GetCosts");
    54 	SQAIAccounting.DefSQFunction(engine, &AIAccounting::GetCosts,   "GetCosts");
    55 	SQAIAccounting.DefSQFunction(engine, &AIAccounting::ResetCosts, "ResetCosts");
    55 	SQAIAccounting.DefSQFunction(engine, &AIAccounting::ResetCosts, "ResetCosts");
    56 	SQAIAccounting.PostRegister(engine);
    56 	SQAIAccounting.PostRegister(engine);
    57 }
    57 }
    58 #endif /* SQUIRREL_CLASS */
    58 #endif /* SQUIRREL_CLASS */
    59 
    59