EmperorFool
Deity
In that event handler, it is assigning one of the values from argsList (passed from the DLL) to a temporary variable called iGameTurn. You don't have the same argsList in the canDeclareWar() callback, so you must get it from the CyGame:
Now you can use your own variable holding the current game turn called iGameTurn. You could call it iBob if you wanted--variable names only have significance to humans--but that would be misleading. iGameTurn sounds like a good name.
Code:
iGameTurn = gc.getGame().getGameTurn()
Now you can use your own variable holding the current game turn called iGameTurn. You could call it iBob if you wanted--variable names only have significance to humans--but that would be misleading. iGameTurn sounds like a good name.
