public ScriptedGameWrapper(string entryFile, Uri exchangeClientUri, SimpleWCFClient <ITelnetClientService> playerClientFactory, string externalGameUrl, string externalGameSSLUrl, double externalDelay, IDictionary <string, object> settings, IAccountingFacadeFactory accountingFacadeFactory, ILiveReportTracker reportTracker) { ExternalDelay = externalDelay; this.settings = settings; this.accountingFacadeFactory = accountingFacadeFactory; this.reportTracker = reportTracker; this.entryFile = entryFile; this.exchangeClientUri = exchangeClientUri; this.playerClientFactory = playerClientFactory; this.externalGameUrl = externalGameUrl; this.externalGameSSLUrl = externalGameSSLUrl; entryFolder = Path.GetDirectoryName(entryFile); rootFolder = entryFolder.CombinePath("..").ToFullPath(); folderName = Path.GetFileName(Path.GetDirectoryName(entryFolder)); id = folderName.Trim().ToLower(); }
public static void Initialize(string sourceUrl) { gateway = new SimpleWCFClient <IExternalGameInfoService>(sourceUrl); }