Thread: EventData
View Single Post
Old 10-08-2008, 11:53 AM   #3
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

OK, posted SpellTargetLib this time.

I see no reason to not use create, considering it is how people usually get an instance of a struct. It is not that confusing that you can't destroy instances because you get an error message if you try to.

I don't repeat that block of code twice. It's getting both the caster/ordered unit and target coordinates though, so it looks repetitive.

It doesn't keep handle indexes hostage. It grabs all the information about the location, stores it, and destroys it in the create method.
grim001 is offline   Reply With Quote