TileFactory

public protocol TileFactory : Producer

Tile factories create the sprites that will be rendered for tiles

  • Make a new sprite to represent the tile

    Declaration

    Swift

    func make(spriteFor tile: Tile, in tileset: TileSet, with texture: EngineType.TextureType, from project: Project) throws -> EngineType.SpriteType?

    Parameters

    tile

    The Tile the sprite should represent

    tileset

    The TileSet the tile is from

    texture

    The texture or bitmap that is or contains the grahics for the sprite

    project

    The project it is being loaded from