View topic - AllowFeatureBuildStep() called when wreck is resurrected



All times are UTC + 1 hour


Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 04 May 2012, 14:32 
User avatar

Joined: 14 Jan 2006, 04:09
Right now we have
AllowFeatureBuildStep (builderID, builderTeam, featureID, featureDefID, step)
callin.

It is called when:
- feature is getting reclaimed (in this case step is a negative number)
- feature is getting repaired (refilled with metal) before being resurrected
(in this case step is a positive number)

But it is not called when the actual resurrection takes progress (resurrectProgress variable is changed). Actually no callin at all is called when it happens, so it is very difficult and requires complex hacks to detect when the unit starts resurrecting and how much each builder contributes to the resurrection progress.

So I propose that either:
- AllowFeatureBuildStep should be called in such case, with new parameter "resurrectStep"
- some new callin is created and it is called when the resurrection progresses.


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

All times are UTC + 1 hour


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:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.