eakosin / TheExplorerProject

A 2D MMO-PVE dungeon crawler with item based character progression.
4 stars 3 forks source link

Add depend constraint support. #7

Closed eakosin closed 10 years ago

eakosin commented 10 years ago

Add a depend constraint type, which will be a function that decides the value based upon other parameter's values. It will be a single function, which should change all parameters that use the depend constraint. Order and chain dependency will be designed by the programmer. All depend parameters will be declared as such: [script].constraint.[parameter].depend = true A list of depend parameters will be built, and after the depend function is called, the values of each parameter will be saved into the level object.

eakosin commented 10 years ago

Added depend keyword and tested.