![]() |
#1 | |
Obscurity, the Art
|
![]() GroupUtils Library
__________________Background: This is a simple library that includes a group stack for dynamic groups, a global group that can be used for enumerations, and a pair of TRUE/FALSE boolexprs for preventing the null boolexpr leak in enumerations backwards compatibility with old maps that use them. Since the 1.24c patch, the null boolexpr leak in enumerations no longer exists. It also implements Griffen's method of GroupRefresh, which makes this a nice, all-encompassing utility set standard for group handling. Lastly, this library has means to group units in an area of effect while considering collision, something the GroupEnumUnitsInRange native does not do. Requirements:
![]() Function List: This library provides the following functions to the user.
Quote:
In the event that you used one of the libraries this has deprecated, the following backwards compatibility libraries have been provided for your convenience. Simply replace the old library with the respective library below and it will work fine. ![]() ![]() ![]() Thanks guys, hopefully this helps streamline group handling! Last edited by Rising_Dusk : 12-07-2009 at 02:45 AM. Reason: Updated |
|
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
User
Join Date: Aug 2008
Posts: 158
![]() |
![]() Hey Rising Dusk,
That thing here is just the CS thing, if you'd looked into the TimerUtils thread, you had seen that there is the group stack :D Therefore i think that this is nearly useless ;) Greez |
![]() |
![]() |
![]() |
#3 |
Free Software Terrorist
Technical Director
|
![]() But the CS thing blows.
__________________Dusk, could you add a group cleaner like Griffen's it would make sense to make it GroupUtils a sort of standard if it had that. I think this also needs a double free protection, at least during debug mode. Using SCOPE_PREFIX like that is a little exaggerated. |
![]() |
![]() |
![]() |
#4 | |||
Obscurity, the Art
|
![]() Quote:
Quote:
Quote:
I can remove it if you'd prefer. |
|||
![]() |
![]() |
![]() |
#5 |
Free Software Terrorist
Technical Director
|
![]() There should be a better way than table.
__________________ |
![]() |
![]() |
![]() |
#6 | |
Dread Lord of the Cookies
Content Director
|
![]() Quote:
Or just add GroupRefresh, a compatability library for backward compatabilty, and then be done with it (oh, and link to my thread for the background on why you need it, then GY that). A standard would be nice. |
|
![]() |
![]() |
![]() |
#7 | ||
Obscurity, the Art
|
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Rehabbing
|
![]() wasnt one of these included with cs_safety? (along with the timersafety bit)
__________________ |
![]() |
![]() |
![]() |
#9 |
User
Join Date: Sep 2006
Posts: 687
![]() ![]() |
![]() So...are we supposed to call
![]() ForGroup() |
![]() |
![]() |
![]() |
#10 | |
Obscurity, the Art
|
![]() You could, if you don't need to hold the group for longer than an instant. NewGroup and ReleaseGroup only make sense when you need a group for longer than a given instant. ENUM_GROUP and any group obtained with NewGroup() will work in ForGroup() calls, though.
__________________Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Dread Lord of the Cookies
Content Director
|
![]() Quote:
![]() library GroupRefresh requires GroupUtils endlibrary And you could also have: ![]() library CSSafety requires GroupUtils, TimerUtils endlibrary |
|
![]() |
![]() |
![]() |
#14 |
User
Join Date: Jan 2007
Posts: 528
![]() ![]() |
![]() Well if groups are such hazard handles as timers and this is TimerUtils for groups and TimerUtils is like, essential, then this should be essential, too.
|
![]() |
![]() |
![]() |
#15 |
Dread Lord of the Cookies
Content Director
|
![]() Except in 90% of cases of groups, you don't want to do this. In the other 9% of cases, you can use structs to recycle timers more efficiently.
__________________ |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|