API SplitStationID: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Yehaq (talk | contribs)
Found out what the function does through experimentation.
No edit summary
 
Line 1: Line 1:
=== SplitStationID ===
=== SplitStationID ===
'''Definition:'''
'''Definition:'''
SplitStationID(int stationid) -> int sectorid systemid
SplitStationID(int stationid) -> int sectorid stationidx
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
split up a stationid into sectorid inside the system systemid. (this ''was'' totally wrong)
split up a stationid into sectorid and station index
<br>
<br>
'''Arguments:'''<br>
'''Arguments:'''<br>
Line 10: Line 10:
<br>
<br>
'''Returns:'''<br>
'''Returns:'''<br>
''secttorid'' sector in system<br>
''sectorid'' sector in system<br>
''systemid'' system id<br>
''stationidx'' station index within sector<br>
<br>
<br>

Latest revision as of 14:18, 31 March 2010

SplitStationID

Definition: SplitStationID(int stationid) -> int sectorid stationidx
Description:
split up a stationid into sectorid and station index
Arguments:
stationid a stationid
Returns:
sectorid sector in system
stationidx station index within sector