resolveReferences method

StateMachine resolveReferences(
  1. Map<String, GameEntity> entities
)

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;
}