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

ECS: Create entity "prefabs" #67

Open
christopher-buss opened this issue Mar 27, 2023 · 2 comments
Open

ECS: Create entity "prefabs" #67

christopher-buss opened this issue Mar 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@christopher-buss
Copy link
Member

Entity "prefabs" would be a collection of components that could be added to an entity. For example, if we wanted to create an "lamp" entity that always needed a Position, Renderable, Interactable, and Light component, we could just add the collection of components to the entity, rather than needing to add every component individually.

@christopher-buss christopher-buss added the enhancement New feature or request label Mar 27, 2023
@christopher-buss christopher-buss moved this to 📋 Backlog in ECSv1 Mar 27, 2023
@christopher-buss christopher-buss changed the title Create entity "prefabs" ECS: Create entity "prefabs" Apr 6, 2023
@christopher-buss christopher-buss moved this from 📋 Backlog to 🏗 In progress in ECSv1 Apr 11, 2023
@RigidStudios
Copy link
Contributor

Yeah I've been wanting to do this a lot, do you have an API that you're working on?

@christopher-buss
Copy link
Member Author

https://github.com/AetherInteractiveLtd/Tina/tree/feat-prefabs

This was an initial idea, where we basically just store them as an array of components. This was from a while back; I just pulled out my stash. I never properly figured out if this was the best approach though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants