i have an addon called BGCallouts that reports for battlegrounds if a capping object need help or is safe (in Arathi Basin for ex. Blacksmith is safe.)
Now i want to add a timer for that so it says how long iti is before it get fully capped. I know there is many good addon that do that but i want it on my addon too. Where can i find the API for getting the timers on capped object. I think its not so easy but if i can get an start it will help.
How Capping does it is by using its own function called "SetupAssault" and passing the correct value for assault timers in that battleground. Looks like AV is 245 seconds, IoC is 61 seconds, AB is 60 seconds, DG is 61 seconds, Gilneas is 60 seconds, and EotS RBG is 60 seconds.
Someone could write a LibBGTimers or something like that with these values, but Capping is so nice that I don't really see the need to rewrite this part.