Difference between revisions of "User:AVS/Scripting"

From VCMI Project Wiki
Jump to: navigation, search
(Created page with " == Problems == * How to override server logic when script acts at client side?")
 
Line 1: Line 1:
 +
== 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)
 +
  
 
== Problems ==
 
== Problems ==
 
* How to override server logic when script acts at client side?
 
* How to override server logic when script acts at client side?

Revision as of 13:57, 19 January 2013

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)


Problems

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