Example #1
0
        //private void Context_UpdateTriggered(ArkServerContext sender)
        //{
        //    UpdateTriggered?.Invoke(sender);
        //}

        public void AddCluster(ArkClusterContext context)
        {
            context.UpdateCompleted += Context_UpdateCompleted;
            context.GameDataUpdated += Context_GameDataUpdated;
            context._contextManager  = this;
            _clusterContexts.Add(context.Config.Key, context);
        }
Example #2
0
        public ArkClusterContext GetCluster(string key)
        {
            ArkClusterContext context = null;

            if (_clusterContexts.TryGetValue(key, out context))
            {
                return(context);
            }

            return(null);
        }
Example #3
0
 public ArkServerContext(
     IConfig fullconfig,
     ServerConfigSection config,
     ArkClusterContext clusterContext,
     ISavedState savedState,
     ArkAnonymizeData anonymizeData,
     ILifetimeScope scope)
     : base(
         config?.SaveFilePath,
         clusterContext,
         fullconfig.SavegameExtractionMaxDegreeOfParallelism,
         true)
 {
     Config           = config;
     _clusterContext  = clusterContext;
     _scope           = scope;
     _saveFileWatcher = _scope.Resolve <IArkSaveFileWatcher>(new TypedParameter(typeof(ArkServerContext), this));
     _savedState      = savedState;
     _anonymizeData   = anonymizeData;
     Steam            = new SteamManager(config);
 }
Example #4
0
 public void QueueClusterUpdate(ArkClusterContext clusterContext)
 {
     QueueUpdate(clusterContext, "Cluster", clusterContext.Config.Key);
 }
Example #5
0
 public void QueueUpdateClusterManual(ArkClusterContext clusterContext)
 {
     QueueUpdateManual(clusterContext, "Cluster", clusterContext.Config.Key);
 }
Example #6
0
        //private void Context_UpdateTriggered(ArkServerContext sender)
        //{
        //    UpdateTriggered?.Invoke(sender);
        //}

        public void AddCluster(ArkClusterContext context)
        {
            context.UpdateCompleted += Context_UpdateCompleted;
            _clusterContexts.Add(context.Config.Key, context);
        }