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

Idiomatic Way to Handle "Component" That Needs Heap Data #262

Open
basstabs opened this issue May 10, 2021 · 1 comment
Open

Idiomatic Way to Handle "Component" That Needs Heap Data #262

basstabs opened this issue May 10, 2021 · 1 comment

Comments

@basstabs
Copy link

I'm trying to make a component that needs to store a vector of information, however this isn't sized so Legion won't let me use it as a component. What's the idiomatic way to attach unsized data to an entity in Legion?

@DrOptix
Copy link

DrOptix commented Sep 22, 2021

I'm also interested in this.

Update. For me the case is that I want to implement a ScriptComponent that has an field instance: Option<Box<dyn Script>>, but as mentioned above it is not allowed.

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

2 participants