-
-
Read the JSON associated to the tileset
Name |
Type |
Description |
json |
Object
|
Json object describing the tileset |
-
-
Get the path to the picture tileset
Returns:
-
getSpecialString
(specials)string
-
Get the string logic for special elements
Name |
Type |
Description |
specials |
Array.<string>
|
Special elements |
Returns:
-
getAutotilesString
()string
-
Get the string logic for autotiles
Returns:
-
-
Get the string logic for walls
Returns:
-
getMountainsString
()string
-
Get the string logic for mountains
Returns:
-
getMaxAutotilesOffsetTexture
()number
-
Get the max possible offset of an autotile texture
Returns:
-
getMaxMountainOffsetTexture
()number
-
Get the max possible offset of a mountain texture
Returns:
-
-
Load all the specials
-
-
Load all the autotiles with reduced files
-
loadTextureAutotile
(textureAutotile, texture, picture, offset, id)Array.<any>
async
-
Load an autotile ID and add it to context rendering
Name |
Type |
Description |
textureAutotile |
TextureSeveral
|
The autotile several texture |
texture |
THREE.Texture
|
The texture to paint on |
picture |
SystemPicture
|
The picture to paint |
offset |
number
|
The offset |
id |
number
|
The picture id |
Returns:
Type |
Description |
Array.<any>
|
|
-
paintPictureAutotile
(img, offset, point, id)
-
Paint the picture in texture
Name |
Type |
Description |
img |
Image
|
The image to draw |
offset |
number
|
The offset |
point |
Array.<number>
|
The in several texture |
id |
number
|
The picture id |
-
updateTextureAutotile
(textureAutotile, texture)
async
-
Update texture of a TextureAutotile
Name |
Type |
Description |
textureAutotile |
TextureSeveral
|
The autotile several texture |
texture |
THREE.Texture
|
The texture to paint on |
-
-
Load all the mountains with reduced files
-
loadTextureMountain
(textureMountain, texture, picture, offset, id)Array.<any>
async
-
Load a mountain ID and add it to context rendering
Name |
Type |
Description |
textureMountain |
TextureSeveral
|
The mountain several texture |
texture |
THREE.Texture
|
The texture to paint on |
picture |
SystemPicture
|
The picture to paint |
offset |
number
|
The offset |
id |
number
|
The picture id |
Returns:
Type |
Description |
Array.<any>
|
|
-
paintPictureMountain
(img, offset, id)
-
Paint the picture in texture
Name |
Type |
Description |
img |
Image
|
The image to draw |
offset |
number
|
The offset |
id |
number
|
The picture id |
-
updateTextureMountain
(textureMountain, texture)
async
-
Update texture of a TextureSeveral
Name |
Type |
Description |
textureMountain |
TextureSeveral
|
The mountain several texture |
texture |
THREE.Texture
|
The texture to paint on |
-
-
Load all the walls
-
loadTextureWall
(picture, id)THREE.ShaderMaterial
async
-
Load a wall texture
Name |
Type |
Description |
picture |
SystemPicture
|
The picture to load |
id |
number
|
The picture id |
Returns:
Type |
Description |
THREE.ShaderMaterial
|
|