The differences in Galaxy are larger than that. This Galaxy script wouldn't compile correctly.
1) The variable type is 'point' and not 'Point'.
2) A point can't be used like a struct or a class. So p.x / p.y don't work. To get it's members you need to call PointGetX(p) / PointGetY(p)
Also I don't think the static keyword has any meaning in Galaxy.
PS - Oh, unless you're talking about Andromeda. Andromeda acknowledges static and the point operator for points. If this is meant for Andromeda please say so in the first post :)
Galaxy acknowledges static functions, as a file scope in the same manner as C.
Not sure if the rest of the semantics are the same as C tho, or even legal (i.e static local variables)
0.7 is out soon (had nothing to do x.x)
ignores comments and multi line comments (/* */) but doesn't change it to / / because it can cause errors (for example: double foo = /*10*/20; would be fixed foo = / /1020; => error)
also removes Windows and Microsoft
and a endless loop bug is fixed (caused by Min and Max and Abs)
a version without the bug can be found on the asset link
C# to Galaxy Converter v0.6
Asset: http://www.sc2mapster.com/assets/c-galaxy-converter/
This is a simple tool that replaces the basic C# names with Starcraft 2 Galaxy names and makes your life easier.
I made this tool because i need some of my c# code in sc2 and got sick and tired of changing all this variables and etc.
a small example:
Input:
Output:
Requires Windows and min NetFrame 3.5
Currently Supports:
Update v0.65:
if you know other things post it here
thanks to:
s3rius (Quote: The variable type is 'point' and not 'Point')
The differences in Galaxy are larger than that. This Galaxy script wouldn't compile correctly.
1) The variable type is 'point' and not 'Point'.
2) A point can't be used like a struct or a class. So p.x / p.y don't work. To get it's members you need to call PointGetX(p) / PointGetY(p)
Also I don't think the static keyword has any meaning in Galaxy.
PS - Oh, unless you're talking about Andromeda. Andromeda acknowledges static and the point operator for points. If this is meant for Andromeda please say so in the first post :)
it doesn't convert the whole code to galaxy (i mean the basic sc2 scripting language) it only change the basic things like double to fixed etc.
oh yea i just write in Point an it get highlited so my bad
static is also highlited in the editor so i let it.
Galaxy acknowledges static functions, as a file scope in the same manner as C. Not sure if the rest of the semantics are the same as C tho, or even legal (i.e static local variables)
0.7 is out soon (had nothing to do x.x)
ignores comments and multi line comments (/* */) but doesn't change it to / / because it can cause errors (for example: double foo = /*10*/20; would be fixed foo = / /1020; => error)
also removes Windows and Microsoft
and a endless loop bug is fixed (caused by Min and Max and Abs)
a version without the bug can be found on the asset link