18.2.2016 - Textual descriptions in json files

Informations from project life
Post Reply
fprt77
Site Admin
Posts: 38
Joined: Sun Apr 03, 2016 7:35 pm

18.2.2016 - Textual descriptions in json files

Post by fprt77 » Mon May 30, 2016 2:30 pm

Since we would like to support multiple languages in future, we had implemented solution to take strings from Json files. First we had to switch all texts used in ".cpp/.hpp" files. Next step was to extend this to whole content already defined in its Json files. At the end, we have ended with this textual resource files:
  • global
  • buffs
  • characters
  • items
  • objects
  • skills
  • other
To use textual value from these resources in content definition, we simply add "string@id_of_text" where hardcoded texts used to be. Only other thing that must be respected is to define buff texts in buffs resource Json file (same for other resource types).

Post Reply