If the event contains a “state” field, puts that field in state
.
Otherwise stores an empty state (0). Returns true if there was a state field in the event. this may be null, in which case it’s treated as if the event had no state field.
this |
a Event or null |
state |
return location for state |
true if there was a state field in the event |