Calling OnLeave on RemoveAllModels

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 771
Joined: Wed May 05, 2010 12:16 pm

Calling OnLeave on RemoveAllModels

Post by Rado1 » Thu Apr 19, 2012 2:16 pm

This is not really necessary (there is a simple workaround), but I would appreciate if RemoveAllModels calls also OnLeave parts of active ModelStates of the deleted models. I usually use the OnLeave section for "cleaning the stuff" relevant for given model state (eg. deallocating DLL's resources allocated in that model state). This is like overriding of Model's OnRemove (with super() at the end).

Post Reply