resolveReferences method
Restores UUIDs with references to GameEntity objects.
Implementation
StateMachine resolveReferences(Map<String,GameEntity> entities ) {
owner = entities.get(owner!);
for (final state in states.values ) {
state.resolveReferences( entities );
}
return this;
}