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

Code generation bugs #10

Open
kkohno opened this issue Aug 10, 2018 · 0 comments
Open

Code generation bugs #10

kkohno opened this issue Aug 10, 2018 · 0 comments

Comments

@kkohno
Copy link

kkohno commented Aug 10, 2018

Hi,
I use Entitas-Lang Without unity
and found a bug with VSCode and Eclipse.

It not correctly generates Contexts.

compAndSys file is in root of project.

compAndSys.entitas:

target entitas_csharp
context Game(default),Input 

and I have not compiled code with error:
The type Entitas.Context<ProjectEntity>' does not contain a constructor that takes 3' arguments
(No third parameter at all)

generated ContextClasses.cs:

using Entitas;

public sealed partial class GameContext : Context<GameEntity> {

	public GameContext() : base(
		GameComponentsLookup.TotalComponents,
		0,
		new ContextInfo(
			"Game Context",
			GameComponentsLookup.componentNames,
			GameComponentsLookup.componentTypes
		)
	) {}
}
public sealed partial class InputContext : Context<InputEntity> {

	public InputContext() : base(
		InputComponentsLookup.TotalComponents,
		0,
		new ContextInfo(
			"Input Context",
			InputComponentsLookup.componentNames,
			InputComponentsLookup.componentTypes
		)
	) {}
}

generated ComponentLookups.cs is empty!

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

No branches or pull requests

1 participant