Created
May 15, 2013 22:47
-
-
Save theQuazz/5588043 to your computer and use it in GitHub Desktop.
JASS Function Interfaces Its not actually ActionScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scope SomeExample initializer onInit | |
| // requires DamageEvent | |
| // not sure how scoping will work... | |
| function AhhWeJustGotDamaged takes unit damagedUnit, unit damageSource, real damage returns nothing | |
| debug call BJDebugMsg( "We just took " + R2S( damage ) + " damage!" ); | |
| endfunction | |
| private function onInit takes nothing returns nothing | |
| call RegisterDamageResponse( Response.AhhWeJustGotDamaged ) | |
| // we might need to use Response.SomeExample_AhhWeJustGotDamaged instead | |
| endfunction | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment