Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory machine data factory method #459

Open
StoneCypher opened this issue Feb 9, 2020 · 0 comments
Open

Factory machine data factory method #459

StoneCypher opened this issue Feb 9, 2020 · 0 comments

Comments

@StoneCypher
Copy link
Owner

Similar to the name factory method #431 , a machine factory should be able to take a method which makes the initial state for a new machine.

So by example, consider a Roller Coaster Tycoon (hereafter RCT) clone. One of the issues with RCT is that you need a semi-constant stream of new customers, which might be implemented as instances of a machine. So, a name factory #431 for those customers might label them Customer ${n++}, for the developer to tell them apart (and ostensibly give different incrementing labels to the other entities in the system, like staff, rides, animals, props, furniture, garbage, and so forth,) and the data factory might give them actual names, appearance characteristics, preferences, and so forth, for purposes of gameplay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant