Пример #1
0
 public TileController(ITileLoader tileLoader, ITileActivator tileActivator,
                       IMessageBus messageBus, IObjectPool objectPool)
 {
     _tileLoader    = tileLoader;
     _messageBus    = messageBus;
     _tileActivator = tileActivator;
     _objectPool    = objectPool;
     InvalidateLastKnownPosition();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"/> class.
 /// </summary>
 public ScreenWorld(IScreenLoader screenLoader, ITileLoader tileLoader, IEntityLoader entityLoader, EventRunner eventRunner) : base(screenLoader)
 {
     this.tileLoader    = tileLoader;
     this.entityLoader  = entityLoader;
     this.eventRunner   = eventRunner;
     worldObjects       = new List <WorldObject>();
     eventSwitchHandler = new EventSwitchHandler();
     eventSwitchHandler.AddEventSwitch(new EventSwitch {
         Id = 1, Name = "Test", On = false
     });
 }
Пример #3
0
        public MapGenTileController(
            MapGenManager manager,
            ITileLoader tileLoader,
            ITileActivator tileActivator,
            IMessageBus messageBus,
            IObjectPool objectPool,
            IElementSourceProvider elementSourceProvider)
        {
            m_manager               = manager;
            m_tileLoader            = tileLoader;
            m_messageBus            = messageBus;
            m_objectPool            = objectPool;
            m_elementSourceProvider = elementSourceProvider;

            m_endX  = (int)m_manager.WorldSize.x / 2;
            m_nextX = m_startX = -m_endX;
            m_endY  = (int)m_manager.WorldSize.y / 2;
            m_nextY = -m_endY;
        }
Пример #4
0
 public void Construct(IGrid grid, ICameraController cameraController, ITileLoader tileLoader)
 {
     _grid             = grid;
     _cameraController = cameraController;
 }
 public MapRenderer(ITileLoader tileLoader, MapBehaviour.Factory mapFactory)
 {
     _tileLoader = tileLoader;
     _mapFactory = mapFactory;
 }
Пример #6
0
 public TileProvider(ITiler tiler, ITileLoader tileLoader)
 {
     _tiler              = tiler;
     _tileLoader         = tileLoader;
     LowerTileSetsToLoad = 2;
 }