Update README.md

This commit is contained in:
Nick Walton 2020-06-02 13:51:31 -06:00 committed by GitHub
parent 21449ee301
commit 95b34a276f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,13 @@ Called each time the player gives an input and has the opportunity to modify tha
Called each time the model generates an output and has the opportunity to modify that output. Called each time the model generates an output and has the opportunity to modify that output.
### World Entries ### World Entries
You can modify and read from the `worldEntries` parameter (same as world info that you can set on the scenario) allowing you to dynamically change it based on what's happening. You can read from the `worldEntries` parameter (same as world info that you can set on the scenario)
You can modify worldEntries with the below functions
* addWorldEntry(keys, entry)
* removeWorldEntry(index)
* updateWorldEntry(index, keys, entry)
### State ### State
The `state` variable can be used to store information that's persistent across function calls. The `state` variable can be used to store information that's persistent across function calls.