User:AVS/Scripting

From VCMI Project Wiki
< User:AVS
Revision as of 14:05, 19 January 2013 by AVS (talk | contribs)
Jump to: navigation, search

Directory structure

  • [Done] "ALL/Scripts" - autoloading scripts. Independent of each other.
  • [Todo] "ALL/ScriptLib" - script library, load on demand.
  • recomended to put scripts in mod subfolder

Persistence

  • [Todo] JsonNode`s in Advmap objects.
  • (*) global state of scripts and scripts itself. + reloading scripts (Era like)

Engine interaction

  • read only through callbacks
  • ALL changes through NetPacks

Problems

  • How to override server logic when script acts at client side?