equal
deleted
inserted
replaced
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 |