I was trying to figure out exactly what MeleeInitAI() does, but I can't find the definition for any of the native functions. I grepped through all the galaxy files looking for this function and all it found were calls and declarations and some XML. There was no function body that I could find. Anyone know where to find the function bodies of native functions?
It's called a native function because it does not have a function body. It is a function that maps directly to code within the running Starcraft II executable process.
Yea native functions are not scripted code, it's compiled code but that doesn't stop it from being called by the embedded scripting language via hooks.
"Scripts are often interpreted from source code or bytecode, whereas the application is typically first compiled to native machine code"
http://en.wikipedia.org/wiki/Scripting
I was trying to figure out exactly what MeleeInitAI() does, but I can't find the definition for any of the native functions. I grepped through all the galaxy files looking for this function and all it found were calls and declarations and some XML. There was no function body that I could find. Anyone know where to find the function bodies of native functions?
It's called a native function because it does not have a function body. It is a function that maps directly to code within the running Starcraft II executable process.
@Keo321: Go
Not 100% sure what you are asking, but have you tried showing libraries? The default library contains most of the built-in actions.
So natives are written in C+ + and inaccessible to us?
@Keo321: Go
It's basically the principle of "natives" :)
Yea native functions are not scripted code, it's compiled code but that doesn't stop it from being called by the embedded scripting language via hooks.
"Scripts are often interpreted from source code or bytecode, whereas the application is typically first compiled to native machine code" http://en.wikipedia.org/wiki/Scripting