Beispiel #1
0
        public void Initialize(Simulation ecs, SimulationConfiguration configuration)
        {
            _entityMatcherGroup = ecs.MatcherProvider.CreateMatcherGroup <TEntityType>();
            _entityMatcherGroup.MatchingEntityRemoved += MatchingEntityRemoved;

            _entityFilter?.Initialize(ecs, configuration);
        }
 public void Initialize(Simulation ecs, SimulationConfiguration configuration)
 {
     if (configuration.TrySelectPlayer(_playerId, out _player) == false)
     {
         throw new ScenarioConfigurationException($"Player not found with id {_playerId}");
     }
     _playerMatcherGroup = ecs.MatcherProvider.CreateMatcherGroup <Player, ItemStorage>();
     _itemMatcherGroup   = ecs.MatcherProvider.CreateMatcherGroup <TItemType>();
     _filter?.Initialize(ecs, configuration);
 }
Beispiel #3
0
 public void Initialize(Simulation ecs, SimulationConfiguration configuration)
 {
     _locationMatcherGroup = ecs.MatcherProvider.CreateMatcherGroup <Visitors>();
     _malwareMatcherGroup  = ecs.MatcherProvider.CreateMatcherGroup <Malware>();
     _filter?.Initialize(ecs, configuration);
 }
Beispiel #4
0
 public void Initialize(Simulation ecs, SimulationConfiguration configuration)
 {
     _itemMatcherGroup = ecs.MatcherProvider.CreateMatcherGroup <TItemType, Activation, CurrentLocation>();
     _filter?.Initialize(ecs, configuration);
 }