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 }); }
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; }
public void Construct(IGrid grid, ICameraController cameraController, ITileLoader tileLoader) { _grid = grid; _cameraController = cameraController; }
public MapRenderer(ITileLoader tileLoader, MapBehaviour.Factory mapFactory) { _tileLoader = tileLoader; _mapFactory = mapFactory; }
public TileProvider(ITiler tiler, ITileLoader tileLoader) { _tiler = tiler; _tileLoader = tileLoader; LowerTileSetsToLoad = 2; }