Space Engineers
|
Public Member Functions | |
List< IMyGps > | GetGpsList (long identityId) |
Gets the GPS entries from the specified identity (does not use network traffic). More... | |
void | GetGpsList (long identityId, List< IMyGps > list) |
Gets the GPS entries from the specified identity (does not use network traffic). More... | |
IMyGps | Create (string name, string description, Vector3D coords, bool showOnHud, bool temporary=false) |
Creates a GPS entry object. Does not automatically add it, you need to use AddGps() or AddLocalGps(). More... | |
void | AddGps (long identityId, IMyGps gps) |
Sends a network request to add the GPS entry for the said player, which will also save it to the server. More... | |
void | ModifyGps (long identityId, IMyGps gps) |
Sends a network request to modify the contents of an existing GPS entry. More... | |
void | RemoveGps (long identityId, IMyGps gps) |
Sends a network request to remove the specified GPS entry. More... | |
void | RemoveGps (long identityId, int gpsHash) |
Sends a network request to remove the specified GPS entry. More... | |
void | SetShowOnHud (long identityId, IMyGps gps, bool show) |
Sends a network request to set the GPS entry if it's shown on HUD or not. More... | |
void | SetShowOnHud (long identityId, int gpsHash, bool show) |
Sends a network request to set the GPS entry if it's shown on HUD or not. More... | |
void | AddLocalGps (IMyGps gps) |
Adds a GPS entry only for this client which won't be synchronized or saved. More... | |
void | RemoveLocalGps (IMyGps gps) |
Remove a local GPS entry, no network updates sent. More... | |
void | RemoveLocalGps (int gpsHash) |
Remove a local GPS entry, no network updates sent. More... | |
Definition at line 6 of file IMyGpsCollection.cs.
void VRage.Game.ModAPI.IMyGpsCollection.AddGps | ( | long | identityId, |
IMyGps | gps | ||
) |
Sends a network request to add the GPS entry for the said player, which will also save it to the server.
playerId | |
gps | Use the Create() method to get this object |
void VRage.Game.ModAPI.IMyGpsCollection.AddLocalGps | ( | IMyGps | gps | ) |
Adds a GPS entry only for this client which won't be synchronized or saved.
gps |
IMyGps VRage.Game.ModAPI.IMyGpsCollection.Create | ( | string | name, |
string | description, | ||
Vector3D | coords, | ||
bool | showOnHud, | ||
bool | temporary = false |
||
) |
Creates a GPS entry object. Does not automatically add it, you need to use AddGps() or AddLocalGps().
name | |
description | |
coords | |
showOnHud | |
temporary | wether it automatically expires or not (DiscardAt field) |
List<IMyGps> VRage.Game.ModAPI.IMyGpsCollection.GetGpsList | ( | long | identityId | ) |
Gets the GPS entries from the specified identity (does not use network traffic).
identityId |
void VRage.Game.ModAPI.IMyGpsCollection.GetGpsList | ( | long | identityId, |
List< IMyGps > | list | ||
) |
Gets the GPS entries from the specified identity (does not use network traffic).
identityId | |
list | GPS entries will be added to this list. The list is not cleared internally. |
Implemented in Sandbox.Game.Multiplayer.MyGpsCollection.
void VRage.Game.ModAPI.IMyGpsCollection.ModifyGps | ( | long | identityId, |
IMyGps | gps | ||
) |
Sends a network request to modify the contents of an existing GPS entry.
identityId | |
gps | NOTE: it must contain the original hash id |
void VRage.Game.ModAPI.IMyGpsCollection.RemoveGps | ( | long | identityId, |
IMyGps | gps | ||
) |
Sends a network request to remove the specified GPS entry.
identityId | |
gps |
void VRage.Game.ModAPI.IMyGpsCollection.RemoveGps | ( | long | identityId, |
int | gpsHash | ||
) |
Sends a network request to remove the specified GPS entry.
identityId | |
gpsHash |
void VRage.Game.ModAPI.IMyGpsCollection.RemoveLocalGps | ( | IMyGps | gps | ) |
Remove a local GPS entry, no network updates sent.
NOTE: This can remove synchronized ones too.
gps |
void VRage.Game.ModAPI.IMyGpsCollection.RemoveLocalGps | ( | int | gpsHash | ) |
Remove a local GPS entry, no network updates sent.
NOTE: This can remove synchronized ones too.
gpsHash |
void VRage.Game.ModAPI.IMyGpsCollection.SetShowOnHud | ( | long | identityId, |
IMyGps | gps, | ||
bool | show | ||
) |
Sends a network request to set the GPS entry if it's shown on HUD or not.
identityId | |
gps | |
show |
void VRage.Game.ModAPI.IMyGpsCollection.SetShowOnHud | ( | long | identityId, |
int | gpsHash, | ||
bool | show | ||
) |
Sends a network request to set the GPS entry if it's shown on HUD or not.
identityId | |
gpsHash | |
show |