Class: DatasPictures

DatasPictures

All the pictures datas

new DatasPictures ()

Properties:
Name Type Description
list Array.<SystemPicture> List of all the pictures of the game according to ID and PictureKind

Methods

read () async

Read the JSON file associated to pictures

get (kind, id)SystemPicture

Get the corresponding picture
Name Type Description
kind PictureKind The picture kind
id number The picture id
Returns:
Type Description
SystemPicture

getPictureCopy (kind, id)Picture2D

Get a copy of the picture 2D
Name Type Description
kind PictureKind The picture kind
id number The picture id
Returns:
Type Description
Picture2D

getIcon (id)SystemPicture

Get the corresponding icon picture
Name Type Description
id number The picture id of the icon
Returns:
Type Description
SystemPicture