Exemple #1
0
        public override async Task OnActivateAsync()
        {
            IServerSettings serverSettings = GrainFactory.GetGrain <IServerSettings>(0);

            _nextAvailEId = 0;
            _genSettings  = new GeneratorSettings();
            await InitGeneratorSettings(_genSettings);

            _seed = (await serverSettings.GetSettings()).LevelSeed;
            _activedPartitions = new HashSet <IWorldPartition>();
            await base.OnActivateAsync();
        }