petergpinto / pixelengine

0 stars 0 forks source link

Need way to unbind functions after GameObject has been deleted #4

Open petergpinto opened 3 years ago

petergpinto commented 3 years ago

Could wrap the std::binds in an object and store references to that object in the GameObject instance

petergpinto commented 3 years ago

class wrapper { std::bind<void(double)> func; bool deleted; }