sq / JSIL

CIL to Javascript Compiler
http://jsil.org/
Other
1.73k stars 240 forks source link

Unimplemented methods #142

Open ghost opened 11 years ago

ghost commented 11 years ago

Hi again!

I've managed to run my XNA game, some issues come up:

also the Color.MemberWiseClone() method is not implemented, which crashes the game: "Uncaught TypeError: Cannot call method 'MemberwiseClone' of undefined "

Code: colorVector = $T0A().SmoothStep(colorVector.MemberwiseClone(), $T03().get_Red().ToVector4().MemberwiseClone(), (this.hurtTime / this.maxHurtTime)).MemberwiseClone();

kg commented 11 years ago

ToRadians probably isn't implemented, I'll try and add it.

MemberwiseClone of undefined means some other expression returned undefined instead of a struct instance. In that expression, it could be SmoothStep or ToVector4.