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