public AccountingHelper(ScriptedGameContext context, IAccountingFacade accountingFacade, ILiveReportTracker reportTracker, bool trackFunData) { this.context = context; this.trackFunData = trackFunData; this.reportTracker = reportTracker; this.accountingFacade = accountingFacade; reportTracker.Clear(context.Game.IdLong, 0); }
public ScriptedGameContext(ScriptedGameInstance game, JavascriptContext javascriptContext, GameData gameData, GameInstanceConfiguration instanceConfiguration, object gameConfiguration, IDictionary <string, object> vodData, IDictionary <string, object> virtualData, IDictionary <string, object> streamConfig, bool hasLiveStreams, IAccountingFacade accountingFacade, ILiveReportTracker reportTracker) { this.game = game; this.javascriptContext = javascriptContext; this.gameData = gameData; gameInstanceConfiguration = instanceConfiguration; gameSpecificConfiguration = gameConfiguration; this.reportTracker = reportTracker; this.accountingFacade = accountingFacade; mediaHelper = new GameMediaHelper(this, vodData, virtualData, streamConfig, hasLiveStreams); storageHelper = new StorageHelper(game.IdLong.ToString(), this); rng = new RNGWrapper(this, null); roundCounter = new RoundCounter(this); accountingHelper = new AccountingHelper(this, accountingFacade, reportTracker, instanceConfiguration.TrackFunData); }