def onGameLoad( self, argsList ) : # Init things which require a game object or other game data to exist if( not SdToolKitCustom.sdObjectExists( "AIAutoPlay", game ) ) : SdToolKitCustom.sdObjectInit( "AIAutoPlay", game, {} ) SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True ) elif( SdToolKitCustom.sdObjectGetVal( "AIAutoPlay", game, "bCanCancelAuto" ) == None ) : SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True )
def onGameLoad( self, argsList ) : # Init things which require a game object or other game data to exist if( not SdToolKitCustom.sdObjectExists( "AIAutoPlay", game ) ) : SdToolKitCustom.sdObjectInit( "AIAutoPlay", game, {} ) SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True ) elif( SdToolKitCustom.sdObjectGetVal( "AIAutoPlay", game, "bCanCancelAuto" ) == None ) : SdToolKitCustom.sdObjectSetVal( "AIAutoPlay", game, "bCanCancelAuto", True ) for idx in range(0,gc.getMAX_CIV_PLAYERS()) : playerI = gc.getPlayer(idx) if(playerI.isHumanDisabled()): if(not game.isForcedAIAutoPlay(idx)): game.setAIAutoPlay(idx, 1)
def onGameLoad(self, argsList): # Init things which require a game object or other game data to exist if (not SdToolKitCustom.sdObjectExists("AIAutoPlay", game)): SdToolKitCustom.sdObjectInit("AIAutoPlay", game, {}) SdToolKitCustom.sdObjectSetVal("AIAutoPlay", game, "bCanCancelAuto", True) elif (SdToolKitCustom.sdObjectGetVal("AIAutoPlay", game, "bCanCancelAuto") == None): SdToolKitCustom.sdObjectSetVal("AIAutoPlay", game, "bCanCancelAuto", True) for idx in range(0, gc.getMAX_CIV_PLAYERS()): playerI = gc.getPlayer(idx) if (playerI.isHumanDisabled()): if (not game.isForcedAIAutoPlay(idx)): game.setAIAutoPlay(idx, 1)
def revObjectInit(object, VarDictionary={}): return SdToolKitCustom.sdObjectInit('Revolution', object, VarDictionary)
def revObjectInit (object, VarDictionary = {}): return SdToolKitCustom.sdObjectInit( 'Revolution', object, VarDictionary )