Documentation ¶
Index ¶
- func Distance(a VRagePositionable, b VRagePositionable) float64
- type VRageBannedPlayer
- type VRageChatMessage
- type VRageKickedPlayer
- type VRagePlanet
- type VRagePosition
- type VRagePositionable
- type VRageRemoteAsteroid
- type VRageRemoteAsteroidsList
- type VRageRemoteAsteroidsListResponse
- type VRageRemoteBannedPlayersList
- type VRageRemoteBannedPlayersListResponse
- type VRageRemoteCharacter
- type VRageRemoteCharacterList
- type VRageRemoteCharacterListResponse
- type VRageRemoteChatMessageList
- type VRageRemoteChatMessageListResponse
- type VRageRemoteClient
- func (client *VRageRemoteClient) BanPlayer(steamID int64) error
- func (client *VRageRemoteClient) DeleteAsteroid(entityID int64) error
- func (client *VRageRemoteClient) DeleteFloatingObject(entityID int64) error
- func (client *VRageRemoteClient) DeleteGrid(entityID int64) error
- func (client *VRageRemoteClient) DeletePlanet(entityID int64) error
- func (client *VRageRemoteClient) DemotePlayer(steamID int64) error
- func (client *VRageRemoteClient) GetAsteroids() (*VRageRemoteAsteroidsListResponse, error)
- func (client *VRageRemoteClient) GetBannedPlayers() (*VRageRemoteBannedPlayersListResponse, error)
- func (client *VRageRemoteClient) GetCharacters() (*VRageRemoteCharacterListResponse, error)
- func (client *VRageRemoteClient) GetChat() (*VRageRemoteChatMessageListResponse, error)
- func (client *VRageRemoteClient) GetFloatingObjects() (*VRageRemoteFloatingObjectListResponse, error)
- func (client *VRageRemoteClient) GetGrids() (*VRageRemoteGridListResponse, error)
- func (client *VRageRemoteClient) GetKickedPlayers() (*VRageRemoteKickedPlayersListResponse, error)
- func (client *VRageRemoteClient) GetPlanets() (*VRageRemotePlanetListResponse, error)
- func (client *VRageRemoteClient) GetPlayers() (*VRageRemotePlayerListResponse, error)
- func (client *VRageRemoteClient) GetServerInfo() (*VRageRemoteServerInfoResponse, error)
- func (client *VRageRemoteClient) KickPlayer(steamID int64) error
- func (client *VRageRemoteClient) Ping() (time.Duration, error)
- func (client *VRageRemoteClient) PowerDownGrid(entityID int64) error
- func (client *VRageRemoteClient) PowerUpGrid(entityID int64) error
- func (client *VRageRemoteClient) PromotePlayer(steamID int64) error
- func (client *VRageRemoteClient) Save() error
- func (client *VRageRemoteClient) SaveAs(name string) error
- func (client *VRageRemoteClient) SendChat(content string) error
- func (client *VRageRemoteClient) StopCharacter(entityID int64) error
- func (client *VRageRemoteClient) StopFloatingObject(entityID int64) error
- func (client *VRageRemoteClient) StopGrid(entityID int64) error
- func (client *VRageRemoteClient) StopServer() error
- func (client *VRageRemoteClient) UnbanPlayer(steamID int64) error
- func (client *VRageRemoteClient) UnkickPlayer(steamID int64) error
- type VRageRemoteFloatingObject
- func (object *VRageRemoteFloatingObject) Delete() error
- func (object *VRageRemoteFloatingObject) GetNearestGrids() ([]*VRageRemoteGrid, error)
- func (object *VRageRemoteFloatingObject) GetNearestGridsIf(fnc func(grid *VRageRemoteGrid) bool) ([]*VRageRemoteGrid, error)
- func (object *VRageRemoteFloatingObject) GetPosition() VRagePosition
- func (object *VRageRemoteFloatingObject) Stop() error
- type VRageRemoteFloatingObjectList
- type VRageRemoteFloatingObjectListResponse
- type VRageRemoteGrid
- type VRageRemoteGridList
- type VRageRemoteGridListResponse
- type VRageRemoteKickedPlayersList
- type VRageRemoteKickedPlayersListResponse
- type VRageRemotePlanetList
- type VRageRemotePlanetListResponse
- type VRageRemotePlayer
- type VRageRemotePlayerList
- type VRageRemotePlayerListResponse
- type VRageRemoteResponse
- type VRageRemoteResponseError
- type VRageRemoteResponseMeta
- type VRageRemoteServerInfo
- type VRageRemoteServerInfoResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distance ¶ added in v0.1.4
func Distance(a VRagePositionable, b VRagePositionable) float64
Types ¶
type VRageBannedPlayer ¶
type VRageChatMessage ¶
func (*VRageChatMessage) GetRealTimestamp ¶ added in v0.1.5
func (message *VRageChatMessage) GetRealTimestamp() time.Time
type VRageKickedPlayer ¶
type VRagePlanet ¶
type VRagePlanet struct { DisplayName string EntityID int64 `json:"EntityId"` Position VRagePosition // contains filtered or unexported fields }
func (*VRagePlanet) Delete ¶ added in v0.1.1
func (planet *VRagePlanet) Delete() error
func (*VRagePlanet) GetPosition ¶ added in v0.1.4
func (planet *VRagePlanet) GetPosition() VRagePosition
type VRagePosition ¶
func (VRagePosition) DistanceTo ¶ added in v0.1.1
func (pos VRagePosition) DistanceTo(other VRagePosition) float64
type VRagePositionable ¶ added in v0.1.7
type VRagePositionable interface {
GetPosition() VRagePosition
}
type VRageRemoteAsteroid ¶
type VRageRemoteAsteroid struct { DisplayName string EntityID int64 Position VRagePosition // contains filtered or unexported fields }
func (*VRageRemoteAsteroid) Delete ¶ added in v0.1.1
func (roid *VRageRemoteAsteroid) Delete() error
func (*VRageRemoteAsteroid) GetPosition ¶ added in v0.1.4
func (roid *VRageRemoteAsteroid) GetPosition() VRagePosition
type VRageRemoteAsteroidsList ¶
type VRageRemoteAsteroidsList struct {
Asteroids []*VRageRemoteAsteroid
}
type VRageRemoteAsteroidsListResponse ¶
type VRageRemoteAsteroidsListResponse struct { *VRageRemoteResponse Data *VRageRemoteAsteroidsList `json:"data"` }
type VRageRemoteBannedPlayersList ¶
type VRageRemoteBannedPlayersList struct {
BannedPlayers []*VRageBannedPlayer
}
type VRageRemoteBannedPlayersListResponse ¶
type VRageRemoteBannedPlayersListResponse struct { *VRageRemoteResponse Data *VRageRemoteBannedPlayersList `json:"data"` }
type VRageRemoteCharacter ¶ added in v0.1.4
type VRageRemoteCharacter struct { DisplayName string EntityID int64 `json:"EntityId"` Mass float64 Position VRagePosition LinearSpeed float64 // contains filtered or unexported fields }
func (*VRageRemoteCharacter) GetPosition ¶ added in v0.1.4
func (char *VRageRemoteCharacter) GetPosition() VRagePosition
func (*VRageRemoteCharacter) Stop ¶ added in v0.1.7
func (char *VRageRemoteCharacter) Stop() error
type VRageRemoteCharacterList ¶ added in v0.1.4
type VRageRemoteCharacterList struct {
Characters []*VRageRemoteCharacter
}
type VRageRemoteCharacterListResponse ¶ added in v0.1.4
type VRageRemoteCharacterListResponse struct { *VRageRemoteResponse Data *VRageRemoteCharacterList `json:"data"` }
type VRageRemoteChatMessageList ¶
type VRageRemoteChatMessageList struct {
Messages []*VRageChatMessage
}
type VRageRemoteChatMessageListResponse ¶
type VRageRemoteChatMessageListResponse struct { *VRageRemoteResponse Data *VRageRemoteChatMessageList `json:"data"` }
type VRageRemoteClient ¶
type VRageRemoteClient struct { BaseURL string RemoteAddress string Key string // contains filtered or unexported fields }
func NewVRageRemoteClient ¶
func NewVRageRemoteClient(remoteAddress string, key string) *VRageRemoteClient
func (*VRageRemoteClient) BanPlayer ¶
func (client *VRageRemoteClient) BanPlayer(steamID int64) error
func (*VRageRemoteClient) DeleteAsteroid ¶
func (client *VRageRemoteClient) DeleteAsteroid(entityID int64) error
func (*VRageRemoteClient) DeleteFloatingObject ¶
func (client *VRageRemoteClient) DeleteFloatingObject(entityID int64) error
func (*VRageRemoteClient) DeleteGrid ¶
func (client *VRageRemoteClient) DeleteGrid(entityID int64) error
func (*VRageRemoteClient) DeletePlanet ¶
func (client *VRageRemoteClient) DeletePlanet(entityID int64) error
func (*VRageRemoteClient) DemotePlayer ¶ added in v0.1.1
func (client *VRageRemoteClient) DemotePlayer(steamID int64) error
func (*VRageRemoteClient) GetAsteroids ¶
func (client *VRageRemoteClient) GetAsteroids() (*VRageRemoteAsteroidsListResponse, error)
func (*VRageRemoteClient) GetBannedPlayers ¶
func (client *VRageRemoteClient) GetBannedPlayers() (*VRageRemoteBannedPlayersListResponse, error)
func (*VRageRemoteClient) GetCharacters ¶ added in v0.1.4
func (client *VRageRemoteClient) GetCharacters() (*VRageRemoteCharacterListResponse, error)
func (*VRageRemoteClient) GetChat ¶
func (client *VRageRemoteClient) GetChat() (*VRageRemoteChatMessageListResponse, error)
func (*VRageRemoteClient) GetFloatingObjects ¶
func (client *VRageRemoteClient) GetFloatingObjects() (*VRageRemoteFloatingObjectListResponse, error)
func (*VRageRemoteClient) GetGrids ¶
func (client *VRageRemoteClient) GetGrids() (*VRageRemoteGridListResponse, error)
func (*VRageRemoteClient) GetKickedPlayers ¶
func (client *VRageRemoteClient) GetKickedPlayers() (*VRageRemoteKickedPlayersListResponse, error)
func (*VRageRemoteClient) GetPlanets ¶
func (client *VRageRemoteClient) GetPlanets() (*VRageRemotePlanetListResponse, error)
func (*VRageRemoteClient) GetPlayers ¶
func (client *VRageRemoteClient) GetPlayers() (*VRageRemotePlayerListResponse, error)
func (*VRageRemoteClient) GetServerInfo ¶
func (client *VRageRemoteClient) GetServerInfo() (*VRageRemoteServerInfoResponse, error)
func (*VRageRemoteClient) KickPlayer ¶
func (client *VRageRemoteClient) KickPlayer(steamID int64) error
func (*VRageRemoteClient) PowerDownGrid ¶
func (client *VRageRemoteClient) PowerDownGrid(entityID int64) error
func (*VRageRemoteClient) PowerUpGrid ¶
func (client *VRageRemoteClient) PowerUpGrid(entityID int64) error
func (*VRageRemoteClient) PromotePlayer ¶ added in v0.1.1
func (client *VRageRemoteClient) PromotePlayer(steamID int64) error
func (*VRageRemoteClient) Save ¶ added in v0.1.1
func (client *VRageRemoteClient) Save() error
func (*VRageRemoteClient) SaveAs ¶ added in v0.1.1
func (client *VRageRemoteClient) SaveAs(name string) error
func (*VRageRemoteClient) SendChat ¶
func (client *VRageRemoteClient) SendChat(content string) error
func (*VRageRemoteClient) StopCharacter ¶ added in v0.1.7
func (client *VRageRemoteClient) StopCharacter(entityID int64) error
func (*VRageRemoteClient) StopFloatingObject ¶
func (client *VRageRemoteClient) StopFloatingObject(entityID int64) error
func (*VRageRemoteClient) StopGrid ¶
func (client *VRageRemoteClient) StopGrid(entityID int64) error
func (*VRageRemoteClient) StopServer ¶ added in v0.1.7
func (client *VRageRemoteClient) StopServer() error
func (*VRageRemoteClient) UnbanPlayer ¶
func (client *VRageRemoteClient) UnbanPlayer(steamID int64) error
func (*VRageRemoteClient) UnkickPlayer ¶
func (client *VRageRemoteClient) UnkickPlayer(steamID int64) error
type VRageRemoteFloatingObject ¶
type VRageRemoteFloatingObject struct { DisplayName string EntityID int64 `json:"EntityId"` Kind string Mass float64 Position VRagePosition LinearSpeed float64 DistanceToPlayer float64 // contains filtered or unexported fields }
func (*VRageRemoteFloatingObject) Delete ¶ added in v0.1.1
func (object *VRageRemoteFloatingObject) Delete() error
func (*VRageRemoteFloatingObject) GetNearestGrids ¶ added in v0.1.3
func (object *VRageRemoteFloatingObject) GetNearestGrids() ([]*VRageRemoteGrid, error)
GetNearestGrids ordered by distance
func (*VRageRemoteFloatingObject) GetNearestGridsIf ¶ added in v0.1.3
func (object *VRageRemoteFloatingObject) GetNearestGridsIf(fnc func(grid *VRageRemoteGrid) bool) ([]*VRageRemoteGrid, error)
GetNearestGrids ordered by distance but only return grids which match a callback criteria
func (*VRageRemoteFloatingObject) GetPosition ¶ added in v0.1.4
func (object *VRageRemoteFloatingObject) GetPosition() VRagePosition
func (*VRageRemoteFloatingObject) Stop ¶ added in v0.1.1
func (object *VRageRemoteFloatingObject) Stop() error
type VRageRemoteFloatingObjectList ¶
type VRageRemoteFloatingObjectList struct {
FloatingObjects []*VRageRemoteFloatingObject
}
type VRageRemoteFloatingObjectListResponse ¶
type VRageRemoteFloatingObjectListResponse struct { *VRageRemoteResponse Data *VRageRemoteFloatingObjectList `json:"data"` }
type VRageRemoteGrid ¶
type VRageRemoteGrid struct { DisplayName string EntityID int64 `json:"EntityId"` GridSize string BlocksCount int64 Mass float64 Position VRagePosition LinearSpeed float64 DistanceToPlayer float64 OwnerSteamID int64 `json:"OwnerSteamId"` OwnerDisplayName string IsPowered bool PCU int64 // contains filtered or unexported fields }
func (*VRageRemoteGrid) Delete ¶ added in v0.1.1
func (grid *VRageRemoteGrid) Delete() error
func (*VRageRemoteGrid) GetPosition ¶ added in v0.1.4
func (grid *VRageRemoteGrid) GetPosition() VRagePosition
func (*VRageRemoteGrid) PowerDown ¶ added in v0.1.1
func (grid *VRageRemoteGrid) PowerDown() error
func (*VRageRemoteGrid) PowerUp ¶ added in v0.1.1
func (grid *VRageRemoteGrid) PowerUp() error
func (*VRageRemoteGrid) Stop ¶ added in v0.1.1
func (grid *VRageRemoteGrid) Stop() error
type VRageRemoteGridList ¶
type VRageRemoteGridList struct {
Grids []*VRageRemoteGrid
}
type VRageRemoteGridListResponse ¶
type VRageRemoteGridListResponse struct { *VRageRemoteResponse Data *VRageRemoteGridList `json:"data"` }
type VRageRemoteKickedPlayersList ¶
type VRageRemoteKickedPlayersList struct {
KickedPlayers []*VRageKickedPlayer
}
type VRageRemoteKickedPlayersListResponse ¶
type VRageRemoteKickedPlayersListResponse struct { *VRageRemoteResponse Data *VRageRemoteKickedPlayersList `json:"data"` }
type VRageRemotePlanetList ¶
type VRageRemotePlanetList struct {
Planets []*VRagePlanet
}
type VRageRemotePlanetListResponse ¶
type VRageRemotePlanetListResponse struct { *VRageRemoteResponse Data *VRageRemotePlanetList `json:"data"` }
type VRageRemotePlayer ¶
type VRageRemotePlayer struct { FactionTag string PromoteLevel int Ping float64 SteamID int64 DisplayName string FactionName string // contains filtered or unexported fields }
func (*VRageRemotePlayer) Ban ¶ added in v0.1.1
func (player *VRageRemotePlayer) Ban() error
func (*VRageRemotePlayer) Kick ¶ added in v0.1.1
func (player *VRageRemotePlayer) Kick() error
type VRageRemotePlayerList ¶
type VRageRemotePlayerList struct {
Players []*VRageRemotePlayer
}
type VRageRemotePlayerListResponse ¶
type VRageRemotePlayerListResponse struct { *VRageRemoteResponse Data *VRageRemotePlayerList `json:"data"` }
type VRageRemoteResponse ¶
type VRageRemoteResponse struct { Error *VRageRemoteResponseError `json:"error,omitempty"` Meta *VRageRemoteResponseMeta `json:"meta"` }
type VRageRemoteResponseError ¶
type VRageRemoteResponseError struct {
Message string `json:"message"`
}
type VRageRemoteResponseMeta ¶
type VRageRemoteServerInfo ¶
type VRageRemoteServerInfoResponse ¶
type VRageRemoteServerInfoResponse struct { *VRageRemoteResponse Data *VRageRemoteServerInfo `json:"data"` }
Click to show internal directories.
Click to hide internal directories.