Class: DatasGame

DatasGame

All the global informations of the game

new DatasGame ()

Properties:
Name Type Argument Default Description
DatasGame.VARIABLES_PER_PAGE number <optional>
25 The number of variables per page
system DatasSystem System datas
pictures DatasPictures Pictures datas
songs DatasSongs Songs datas
videos DatasVideos Videos datas
shapes DatasShapes Shapes datas
commonEvents DatasCommonEvents Common events datas
specialElements DatasSpecialElements Special elements datas
tilesets DatasTilesets Tilesets datas
items DatasItems Items datas
skills DatasSkills Skills datas
weapons DatasWeapons Weapons datas
armors DatasArmors Armors datas
classes DatasClasses Classes datas
heroes DatasHeroes Heroes datas
monsters DatasMonsters Monsters datas
troops DatasTroops Troops datas
battleSystem DatasBattleSystem Battle System datas
titlescreenGameover DatasTitlescreenGameover Title screen and game over datas
keyBoard DatasKeyBoard KeyBoard datas
animations DatasAnimations Animations datas
loaded boolean Indicate if the datas are all loaded

Methods

read () async

Read the JSON files of all the datas

readSettings () async

Read the JSON files associated to the settings (variables, shaders, dlcs)

getHeroesMonsters (kind)Array.<SystemHero>

Get the list of heros or monsters according to kind
Name Type Description
kind CharacterKind The kind of character
Returns:
Type Description
Array.<SystemHero>