Page 1 of 1

Javascript universe access?

Posted: Mon Jan 18, 2010 12:31 am
by Cmdr James
I dunno if this has been discussed, but there is some useful stuff on Universe.m is there a plan to expose any of this to javascript?

I was looking at options for working out what the target system is, and I think it would need a new option on OOJSPlayer, or alternatively could take the coords which are already available and feed them to findSystemNumber on Universe, but I dont think you can get to that in javascript.

If we think player.ship.targetSystem is a good idea, I can commit my implementation.

Posted: Mon Jan 18, 2010 12:40 am
by JensAyton
Universe per se isn’t going to be exposed. Bits of it are exposed through player and system. I have no objection to exposing targetSystem.