Interface IMyGps
Describes GPS (mods interface)
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyGps
Properties
ContainerRemainingTime
Gets or sets gps text that would be displayed on HUD
Declaration
string ContainerRemainingTime { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Set method doesn't synchronize data over network. Use Modify
Coords
Gets or sets GPS coordinates
Declaration
Vector3D Coords { get; set; }
Property Value
Type | Description |
---|---|
Vector3D |
Remarks
Set method doesn't synchronize data over network. Use Modify
Description
Gets or sets GPS description
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Set method doesn't synchronize data over network. Use Modify
DiscardAt
If it's null then the GPS is confirmed (does not expire automatically). Otherwise, time at which we should drop it from the list, relative to ElapsedPlayTime
Declaration
Nullable<TimeSpan> DiscardAt { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Set method doesn't synchronize data over network. Use Modify
GPSColor
Gets or sets GPS color
Declaration
Color GPSColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
Set method doesn't synchronize data over network. Use Modify
Hash
The GPS entry id hash which is generated using the GPS name and coordinates.
Declaration
int Hash { get; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets or sets GPS name
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Set method doesn't synchronize data over network. Use Modify
ShowOnHud
Gets or sets whether GPS should be visible on HUD
Declaration
bool ShowOnHud { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Set method doesn't synchronize data over network. Use Modify
Methods
ToString()
Gets information about GPS
Declaration
string ToString()
Returns
Type | Description |
---|---|
System. |
String, same that user gets on |
Remarks
Set method doesn't synchronize data over network. Use Modify
UpdateHash()
Updates the hash id if you've changed the name or the coordinates. NOTE: Do not use this if you plan on using this object to update existing GPS entries.
Declaration
void UpdateHash()