Ticket #897 (closed defect: fixed)
javascript common api
| Reported by: | lexa | Owned by: | |
|---|---|---|---|
| Priority: | Nice to Have | Milestone: | Alpha 7 |
| Component: | UI & Simulation | Keywords: | scripting |
| Cc: |
Change History
comment:2 Changed 22 months ago by historic_bruno
- Priority changed from Must Have to Nice to Have
The parameter name doesn't matter in JS, state looks like what we're wanting to call it.
comment:3 Changed 22 months ago by Philip
That's a different OnUpdate for different scripts - AI and component scripts are almost completely independent and unrelated.
common-api is meant to provide a layer of abstraction on top of the state data, so I think it's better not to pass it to OnUpdate at all.
Note: See
TracTickets for help on using
tickets.

Ok, maybe I was wrong Here it says that OnUpdate? takes a message as a parameter... http://svn.wildfiregames.com/docs/writing-components.html