Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualhaegarr

Posted 02 November 2013 - 06:18 AM

EDIT: Err, where is the main part of my answer gone? Dammit! Half an hour gone down the drain...

 


In that case, assuming the code looks like this
Entity e = entitySpawner().spawn();
for(auto &comp: prototype) {
    entitySpawner.attach(e, comp->clone());
}

#2haegarr

Posted 02 November 2013 - 05:24 AM

EDIT: Err, where is the main part of my answer gone?

 


In that case, assuming the code looks like this
Entity e = entitySpawner().spawn();
for(auto &comp: prototype) {
    entitySpawner.attach(e, comp->clone());
}

#1haegarr

Posted 02 November 2013 - 04:28 AM


In that case, assuming the code looks like this
Entity e = entitySpawner().spawn();
for(auto &comp: prototype) {
    entitySpawner.attach(e, comp->clone());
}

PARTNERS