Javascript universe access?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Cmdr James
Commodore
Commodore
Posts: 1357
Joined: Tue Jun 05, 2007 10:43 pm
Location: Berlin

Javascript universe access?

Post 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.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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.
Post Reply