Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jul 17, 2019 12:19 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Apr 07, 2014 5:15 am 
Offline
Game Developer
User avatar

Joined: Wed Feb 17, 2010 12:24 am
Posts: 598
I have a component that needs to be cleaned up (native resource). When an entity is deleted from the world and contains this component, how do I hook into this?

basically I need to called 'native.close()' from my Component when this is called:

world.deleteFromWorld(entity).


Top
 Profile  
 
PostPosted: Tue Apr 08, 2014 9:44 am 
Offline

Joined: Sun Jun 03, 2012 9:21 pm
Posts: 49
For one-off operations, I prefer rolling a Manager. Just implement deleted(Entity).

_________________
agrotera: bytecode-weaving antiboilerplate lib for artemis. | artemis-odb: bugfixing and performance optimized fork.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group