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

Registry factory constructor should allow single installer as a argument. #9

Open
FullStackForger opened this issue Nov 23, 2017 · 0 comments
Projects

Comments

@FullStackForger
Copy link
Contributor

FullStackForger commented Nov 23, 2017

RegistryFactory registryFactory = new RegistryFactory(new List<IInstaller>() {
	{ new YamlInstaller<Stat, StatData>((Resources.Load("example03/stats") as TextAsset).text) },
	{ new YamlInstaller<Resource, ResourceData>((Resources.Load("example03/resources") as TextAsset).text) },
	{ new YamlInstaller<Modifier, ModifierData>((Resources.Load("example03/modifiers") as TextAsset).text) },
});

Should work with

RegistryFactory registryFactory = new RegistryFactory(new YamlInstaller<Stat, StatData>((Resources.Load("example03/stats") as TextAsset).text));
@FullStackForger FullStackForger added this to Backlog in POA Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
POA
  
Backlog
Development

No branches or pull requests

1 participant