Esempio n. 1
0
        public SectorProceduralGenerator(IActorManager actorManager,
                                         IPropContainerManager propContainerManager,
                                         ISectorGeneratorRandomSource randomSource,
                                         IBotPlayer botPlayer,
                                         ISchemeService schemeService,
                                         IDropResolver dropResolver)
        {
            _actorManager         = actorManager;
            _propContainerManager = propContainerManager;
            _randomSource         = randomSource;
            _botPlayer            = botPlayer;
            _schemeService        = schemeService;
            _dropResolver         = dropResolver;

            Log = new StringBuilder();
        }
Esempio n. 2
0
        private static SectorProceduralGenerator CreateGenerator(ISectorGeneratorRandomSource randomSource,
                                                                 ISchemeService schemeService,
                                                                 IBotPlayer botPlayer)
        {
            var dropResolverMock = new Mock <IDropResolver>();
            var dropResolver     = dropResolverMock.Object;

            var actorManagerMock = new Mock <IActorManager>();
            var actorManager     = actorManagerMock.Object;

            var propContainerManagerMock = new Mock <IPropContainerManager>();
            var propContainerManager     = propContainerManagerMock.Object;

            return(new SectorProceduralGenerator(
                       actorManager,
                       propContainerManager,
                       randomSource,
                       botPlayer,
                       schemeService,
                       dropResolver));
        }
Esempio n. 3
0
 public RoomGenerator(ISectorGeneratorRandomSource randomSource, StringBuilder log)
 {
     _randomSource = randomSource;
     Log           = log;
 }