public GameObjectsStore(List<Tiles> tileStore, Tiles[,] tileMap, int[,] tileMapOrigin, Player player, Texture2D[] backgrounds, List<Elements> elementStore) { this.tileStore = tileStore; this.tileMap = tileMap; this.tileMapOrigin = tileMapOrigin; this.player = player; this.backgrounds = backgrounds; this.elementStore = elementStore; }
private Tiles LoadStartTile(int x, int y) { start = Base_Components.RectangleExtensions.GetBottomCenter(GetBounds(x, y)); player = new Player(this, start, alter_Player.outfit_Set); gameObjectsStore.player = player; return new Tiles(Content.Load<Texture2D>("Tiles/null"), TileType.Passable, TileAction.Entrance); }