コード例 #1
0
 public TileController(ITileLoader tileLoader, ITileActivator tileActivator,
                       IMessageBus messageBus, IObjectPool objectPool)
 {
     _tileLoader    = tileLoader;
     _messageBus    = messageBus;
     _tileActivator = tileActivator;
     _objectPool    = objectPool;
     InvalidateLastKnownPosition();
 }
コード例 #2
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;
        }