Class: DatasTilesets

DatasTilesets

All the tilesets datas

new DatasTilesets ()

Properties:
Name Type Argument Default Description
DatasTilesets.PROPERTY_TEXTURES_CHARACTERS string <optional>
"texturesCharacter" Property string used for textures characters
DatasTilesets.PROPERTY_TEXTURES_BATTLERS string <optional>
"texturesBattlers" Property string used for textures battlers
DatasTilesets.PROPERTY_TEXTURES_OBJECTS_3D string <optional>
"texturesObjects3D" Property string used for textures 3D objects
list Array.<SystemTileset> List of all the tilesets of the game according to ID
autotiles Object Tilesets according to string autotiles
walls Object Tilesets according to string walls
mountains Object Tilesets according to string mountains
texturesCharacters Array.<THREE.Material> The textures for character
texturesBattlers Array.<THREE.Material> The textures for battlers
texturesObjects3D Array.<THREE.Material> The textures for 3D objects

Methods

read () async

Read the JSON file associated to tilesets

loadPictures (pictureKind, texturesName) async

Load pictures
Name Type Description
pictureKind PictureKind The picture kind
texturesName string The field name textures

getTexturesAutotiles (tileset)Array.<THREE.Material>

Get the autotiles textures
Name Type Description
tileset SystemTileset The tileset
Returns:
Type Description
Array.<THREE.Material>

getTexturesMountains (tileset)Array.<THREE.Material>

Get the mountains textures
Name Type Description
tileset SystemTileset The tileset
Returns:
Type Description
Array.<THREE.Material>

getTexturesWalls (tileset)Array.<THREE.Material>

Get the walls textures
Name Type Description
tileset SystemTileset The tileset
Returns:
Type Description
Array.<THREE.Material>