Documentation
¶
Index ¶
- func GetScriptByName(userInput string) string
- type TMAvatar
- type TMBanListEntry
- type TMBlackListEntry
- type TMCurrentCallVote
- type TMForceShowAllOpponents
- type TMForcedClubLinks
- type TMGuestListEntry
- type TMLadderStats
- type TMMapInfo
- type TMMaxPlayers
- type TMMaxSpectators
- type TMMethodSignature
- type TMModeScriptInfo
- type TMModeScriptSettings
- type TMNetworkStats
- type TMPackDesc
- type TMPlayerDetailedInfo
- type TMPlayerInfo
- type TMPlayerNetInfo
- type TMPlayerRanking
- type TMPlayerScore
- type TMSEntryVal
- type TMSMapInfo
- type TMSPlayerInfo
- type TMSPlayerRanking
- type TMScriptCommandDescs
- type TMScriptMode
- type TMScriptName
- type TMScriptParamDescs
- type TMServerOptions
- type TMServerOptionsRequest
- type TMServerTag
- type TMSkin
- type TMStatus
- type TMSystemInfo
- type TMTeamInfo
- type TMVersion
- type TMZoneRanking
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetScriptByName ¶
Convert user input into a valid script mode (or return empty if not found)
Types ¶
type TMBanListEntry ¶
type TMBlackListEntry ¶
type TMBlackListEntry struct {
Login string `json:"Login" xmlrpc:"Login"`
}
type TMCurrentCallVote ¶
type TMForceShowAllOpponents ¶
type TMForcedClubLinks ¶
type TMGuestListEntry ¶
type TMGuestListEntry struct {
Login string `json:"Login" xmlrpc:"Login"`
}
type TMLadderStats ¶
type TMLadderStats struct {
LastMatchScore float32 `json:"LastMatchScore" xmlrpc:"LastMatchScore"`
NbrMatchWins int `json:"NbrMatchWins" xmlrpc:"NbrMatchWins"`
NbrMatchDraws int `json:"NbrMatchDraws" xmlrpc:"NbrMatchDraws"`
NbrMatchLosses int `json:"NbrMatchLosses" xmlrpc:"NbrMatchLosses"`
TeamName string `json:"TeamName" xmlrpc:"TeamName"`
PlayerRankings []TMZoneRanking `json:"PlayerRankings" xmlrpc:"PlayerRankings"`
TeamRankings []any `json:"TeamRankings" xmlrpc:"TeamRankings"`
}
type TMMapInfo ¶
type TMMapInfo struct {
Name string `json:"Name" xmlrpc:"Name"`
UId string `json:"UId" xmlrpc:"UId"`
FileName string `json:"FileName" xmlrpc:"FileName"`
Author string `json:"Author" xmlrpc:"Author"`
AuthorNickname string `json:"AuthorNickname" xmlrpc:"AuthorNickname"`
Environnement string `json:"Environnement" xmlrpc:"Environnement"`
Mood string `json:"Mood" xmlrpc:"Mood"`
BronzeTime int `json:"BronzeTime" xmlrpc:"BronzeTime"`
SilverTime int `json:"SilverTime" xmlrpc:"SilverTime"`
GoldTime int `json:"GoldTime" xmlrpc:"GoldTime"`
AuthorTime int `json:"AuthorTime" xmlrpc:"AuthorTime"`
CopperPrice int `json:"CopperPrice" xmlrpc:"CopperPrice"`
LapRace bool `json:"LapRace" xmlrpc:"LapRace"`
NbLaps int `json:"NbLaps" xmlrpc:"NbLaps"`
NbCheckpoints int `json:"NbCheckpoints" xmlrpc:"NbCheckpoints"`
MapType string `json:"MapType" xmlrpc:"MapType"`
MapStyle string `json:"MapStyle" xmlrpc:"MapStyle"`
}
type TMMaxPlayers ¶
type TMMaxSpectators ¶
type TMMethodSignature ¶
type TMModeScriptInfo ¶
type TMModeScriptInfo struct {
Name string `json:"Name" xmlrpc:"Name"`
CompatibleMapTypes string `json:"CompatibleMapTypes" xmlrpc:"CompatibleMapTypes"`
Description string `json:"Description" xmlrpc:"Description"`
Version string `json:"Version" xmlrpc:"Version"`
ParamDescs []TMScriptParamDescs `json:"ParamDescs" xmlrpc:"ParamDescs"`
CommandDescs []TMScriptCommandDescs `json:"CommandDescs" xmlrpc:"CommandDescs"`
}
type TMModeScriptSettings ¶
type TMNetworkStats ¶
type TMNetworkStats struct {
Uptime int `json:"Uptime" xmlrpc:"Uptime"`
NbrConnection int `json:"NbrConnection" xmlrpc:"NbrConnection"`
MeanConnectionTime int `json:"MeanConnectionTime" xmlrpc:"MeanConnectionTime"`
MeanNbrPlayer int `json:"MeanNbrPlayer" xmlrpc:"MeanNbrPlayer"`
RecvNetRate int `json:"RecvNetRate" xmlrpc:"RecvNetRate"`
SendNetRate int `json:"SendNetRate" xmlrpc:"SendNetRate"`
TotalReceivingSize int `json:"TotalReceivingSize" xmlrpc:"TotalReceivingSize"`
TotalSendingSize int `json:"TotalSendingSize" xmlrpc:"TotalSendingSize"`
PlayerNetInfos []TMPlayerNetInfo `json:"PlayerNetInfos" xmlrpc:"PlayerNetInfos"`
}
Deprecated
type TMPackDesc ¶
type TMPlayerDetailedInfo ¶
type TMPlayerDetailedInfo struct {
Login string `json:"Login" xmlrpc:"Login"`
NickName string `json:"NickName" xmlrpc:"NickName"`
PlayerId int `json:"PlayerId" xmlrpc:"PlayerId"`
TeamId int `json:"TeamId" xmlrpc:"TeamId"`
Path string `json:"Path" xmlrpc:"Path"`
Language string `json:"Language" xmlrpc:"Language"`
ClientVersion string `json:"ClientVersion" xmlrpc:"ClientVersion"`
ClientTitleVersion string `json:"ClientTitleVersion" xmlrpc:"ClientTitleVersion"`
IPAddress string `json:"IPAddress" xmlrpc:"IPAddress"`
DownloadRate int `json:"DownloadRate" xmlrpc:"DownloadRate"`
UploadRate int `json:"UploadRate" xmlrpc:"UploadRate"`
IsSpectator bool `json:"IsSpectator" xmlrpc:"IsSpectator"`
IsInOfficialMode bool `json:"IsInOfficialMode" xmlrpc:"IsInOfficialMode"`
IsReferee bool `json:"IsReferee" xmlrpc:"IsReferee"`
Avatar TMAvatar `json:"Avatar" xmlrpc:"Avatar"`
Skins []TMSkin `json:"Skins" xmlrpc:"Skins"`
LadderStats TMLadderStats `json:"LadderStats" xmlrpc:"LadderStats"`
HoursSinceZoneInscription int `json:"HoursSinceZoneInscription" xmlrpc:"HoursSinceZoneInscription"`
BroadcasterLogin string `json:"BroadcasterLogin" xmlrpc:"BroadcasterLogin"`
Allies []string `json:"Allies" xmlrpc:"Allies"`
ClubLink string `json:"ClubLink" xmlrpc:"ClubLink"`
}
type TMPlayerInfo ¶
type TMPlayerInfo struct {
Login string `json:"Login" xmlrpc:"Login"`
NickName string `json:"NickName" xmlrpc:"NickName"`
PlayerId int `json:"PlayerId" xmlrpc:"PlayerId"`
TeamId int `json:"TeamId" xmlrpc:"TeamId"`
SpectatorStatus int `json:"SpectatorStatus" xmlrpc:"SpectatorStatus"`
LadderRanking int `json:"LadderRanking" xmlrpc:"LadderRanking"`
Flags int `json:"Flags" xmlrpc:"Flags"`
LadderScore float32 `json:"LadderScore" xmlrpc:"LadderScore"`
}
type TMPlayerNetInfo ¶
type TMPlayerNetInfo struct {
Login string `json:"Login" xmlrpc:"Login"`
IPAddress string `json:"IPAddress" xmlrpc:"IPAddress"`
StateUpdateLatency int `json:"StateUpdateLatency" xmlrpc:"StateUpdateLatency"`
StateUpdatePeriod int `json:"StateUpdatePeriod" xmlrpc:"StateUpdatePeriod"`
LatestNetworkActivity int `json:"LatestNetworkActivity" xmlrpc:"LatestNetworkActivity"`
PacketLossRate float32 `json:"PacketLossRate" xmlrpc:"PacketLossRate"`
}
type TMPlayerRanking ¶
type TMPlayerRanking struct {
Login string `json:"Login" xmlrpc:"Login"`
NickName string `json:"NickName" xmlrpc:"NickName"`
PlayerId int `json:"PlayerId" xmlrpc:"PlayerId"`
Rank int `json:"Rank" xmlrpc:"Rank"`
BestTime int `json:"BestTime" xmlrpc:"BestTime"` // Deprecated
BestCheckpoints []int `json:"BestCheckpoints" xmlrpc:"BestCheckpoints"` // Deprecated
Score int `json:"Score" xmlrpc:"Score"` // Deprecated
NbrLapsFinished int `json:"NbrLapsFinished" xmlrpc:"NbrLapsFinished"` // Deprecated
LadderScore float32 `json:"LadderScore" xmlrpc:"LadderScore"` // Deprecated
}
type TMPlayerScore ¶
type TMSEntryVal ¶
type TMSMapInfo ¶
type TMSMapInfo struct {
Uid string `json:"Uid" xmlrpc:"Uid"`
Name string `json:"Name" xmlrpc:"Name"`
FileName string `json:"FileName" xmlrpc:"FileName"`
Author string `json:"Author" xmlrpc:"Author"`
AuthorNickname string `json:"AuthorNickname" xmlrpc:"AuthorNickname"`
Environnement string `json:"Environnement" xmlrpc:"Environnement"`
Mood string `json:"Mood" xmlrpc:"Mood"`
BronzeTime int `json:"BronzeTime" xmlrpc:"BronzeTime"`
SilverTime int `json:"SilverTime" xmlrpc:"SilverTime"`
GoldTime int `json:"GoldTime" xmlrpc:"GoldTime"`
AuthorTime int `json:"AuthorTime" xmlrpc:"AuthorTime"`
CopperPrice int `json:"CopperPrice" xmlrpc:"CopperPrice"`
LapRace bool `json:"LapRace" xmlrpc:"LapRace"`
NbLaps int `json:"NbLaps" xmlrpc:"NbLaps"`
NbCheckpoints int `json:"NbCheckpoints" xmlrpc:"NbCheckpoints"`
MapType string `json:"MapType" xmlrpc:"MapType"`
MapStyle string `json:"MapStyle" xmlrpc:"MapStyle"`
}
type TMSPlayerInfo ¶
type TMSPlayerInfo struct {
Login string `json:"Login" xmlrpc:"Login"`
NickName string `json:"NickName" xmlrpc:"NickName"`
PlayerId int `json:"PlayerId" xmlrpc:"PlayerId"`
TeamId int `json:"TeamId" xmlrpc:"TeamId"`
SpectatorStatus int `json:"SpectatorStatus" xmlrpc:"SpectatorStatus"`
LadderRanking int `json:"LadderRanking" xmlrpc:"LadderRanking"`
Flags int `json:"Flags" xmlrpc:"Flags"`
}
type TMSPlayerRanking ¶
type TMSPlayerRanking struct {
Login string `json:"Login" xmlrpc:"Login"`
NickName string `json:"NickName" xmlrpc:"NickName"`
PlayerId int `json:"PlayerId" xmlrpc:"PlayerId"`
Rank int `json:"Rank" xmlrpc:"Rank"`
BestTime int `json:"BestTime" xmlrpc:"BestTime"`
BestCheckpoints []int `json:"BestCheckpoints" xmlrpc:"BestCheckpoints"`
Score int `json:"Score" xmlrpc:"Score"`
NbrLapsFinished int `json:"NbrLapsFinished" xmlrpc:"NbrLapsFinished"`
LadderScore float32 `json:"LadderScore" xmlrpc:"LadderScore"`
}
type TMScriptCommandDescs ¶
type TMScriptMode ¶
type TMScriptMode string
TMScriptMode represents a type for TrackMania Script Modes.
const ( ScriptTimeAttack TMScriptMode = "Trackmania/TM_TimeAttack_Online.Script.txt" ScriptLaps TMScriptMode = "Trackmania/TM_Laps_Online.Script.txt" ScriptRounds TMScriptMode = "Trackmania/TM_Rounds_Online.Script.txt" ScriptCup TMScriptMode = "Trackmania/TM_Cup_Online.Script.txt" ScriptTeams TMScriptMode = "Trackmania/TM_Teams_Online.Script.txt" ScriptKnockout TMScriptMode = "Trackmania/TM_Knockout_Online.Script.txt" ScriptChampion TMScriptMode = "Trackmania/Deprecated/TM_Champion_Online.Script.txt" ScriptRoyal TMScriptMode = "Trackmania/TM_RoyalTimeAttack_Online.Script.txt" ScriptStunt TMScriptMode = "Trackmania/TM_StuntMulti_Online.Script.txt" ScriptPlatform TMScriptMode = "Trackmania/TM_Platform_Online.Script.txt" ScriptTMWC TMScriptMode = "TrackMania/TM_TMWC2023_Online.Script.txt" ScriptTMWT TMScriptMode = "TrackMania/TM_TMWTTeams_Online.Script.txt" )
Define all possible script modes.
type TMScriptName ¶
type TMScriptParamDescs ¶
type TMServerOptions ¶
type TMServerOptions struct {
Name string `json:"Name,omitempty" xmlrpc:"Name"`
Comment string `json:"Comment,omitempty" xmlrpc:"Comment"`
Password string `json:"Password,omitempty" xmlrpc:"Password"`
PasswordForSpectator string `json:"PasswordForSpectator,omitempty" xmlrpc:"PasswordForSpectator"`
NextCallVoteTimeOut int `json:"NextCallVoteTimeOut,omitempty" xmlrpc:"NextCallVoteTimeOut"`
CallVoteRatio float32 `json:"CallVoteRatio,omitempty" xmlrpc:"CallVoteRatio"`
HideServer int `json:"HideServer,omitempty" xmlrpc:"HideServer"`
CurrentMaxPlayers int `json:"CurrentMaxPlayers,omitempty" xmlrpc:"CurrentMaxPlayers"`
NextMaxPlayers int `json:"NextMaxPlayers,omitempty" xmlrpc:"NextMaxPlayers"`
CurrentMaxSpecators int `json:"CurrentMaxSpecators,omitempty" xmlrpc:"CurrentMaxSpecators"`
NextMaxSpectators int `json:"NextMaxSpectators,omitempty" xmlrpc:"NextMaxSpectators"`
KeepPlayerSlots bool `json:"KeepPlayerSlots,omitempty" xmlrpc:"KeepPlayerSlots"`
CurrentCallVoteTimeOut int `json:"CurrentCallVoteTimeOut,omitempty" xmlrpc:"CurrentCallVoteTimeOut"`
AllowMapDownload bool `json:"AllowMapDownload,omitempty" xmlrpc:"AllowMapDownload"`
AutoSaveReplays bool `json:"AutoSaveReplays,omitempty" xmlrpc:"AutoSaveReplays"`
ClientInputsMaxLatency int `json:"ClientInputsMaxLatency,omitempty" xmlrpc:"ClientInputsMaxLatency"`
DisableHorns bool `json:"DisableHorns,omitempty" xmlrpc:"DisableHorns"`
DisableServiceAnnounces bool `json:"DisableServiceAnnounces,omitempty" xmlrpc:"DisableServiceAnnounces"`
PacketAssembly_PacketsPerFrame int `json:"PacketAssembly_PacketsPerFrame,omitempty" xmlrpc:"PacketAssembly_PacketsPerFrame"`
PacketAssembly_FullPacketsPerFrame int `json:"PacketAssembly_FullPacketsPerFrame,omitempty" xmlrpc:"PacketAssembly_FullPacketsPerFrame"`
TrustClientSimu_ClientToServer_SendingRate int `json:"TrustClientSimu_ClientToServer_SendingRate,omitempty" xmlrpc:"TrustClientSimu_ClientToServer_SendingRate"`
DelayedVisuals_ServerToClient_SendingRate int `json:"DelayedVisuals_ServerToClient_SendingRate,omitempty" xmlrpc:"DelayedVisuals_ServerToClient_SendingRate"`
DelayedVisuals_RestrictToSpectators bool `json:"DelayedVisuals_RestrictToSpectators,omitempty" xmlrpc:"DelayedVisuals_RestrictToSpectators"`
}
type TMServerOptionsRequest ¶
type TMServerOptionsRequest struct {
Name string `json:"Name,omitempty" xmlrpc:"Name"`
Comment string `json:"Comment,omitempty" xmlrpc:"Comment"`
Password string `json:"Password,omitempty" xmlrpc:"Password"`
PasswordForSpectator string `json:"PasswordForSpectator,omitempty" xmlrpc:"PasswordForSpectator"`
NextCallVoteTimeOut int `json:"NextCallVoteTimeOut" xmlrpc:"NextCallVoteTimeOut"`
CallVoteRatio float32 `json:"CallVoteRatio" xmlrpc:"CallVoteRatio"`
HideServer *int `json:"HideServer,omitempty" xmlrpc:"HideServer"` // Optional
CurrentMaxPlayers *int `json:"CurrentMaxPlayers,omitempty" xmlrpc:"CurrentMaxPlayers"` // Optional
NextMaxPlayers *int `json:"NextMaxPlayers,omitempty" xmlrpc:"NextMaxPlayers"` // Optional
CurrentMaxSpecators *int `json:"CurrentMaxSpecators,omitempty" xmlrpc:"CurrentMaxSpecators"` // Optional
NextMaxSpectators *int `json:"NextMaxSpectators,omitempty" xmlrpc:"NextMaxSpectators"` // Optional
KeepPlayerSlots *bool `json:"KeepPlayerSlots,omitempty" xmlrpc:"KeepPlayerSlots"` // Optional
CurrentCallVoteTimeOut *int `json:"CurrentCallVoteTimeOut,omitempty" xmlrpc:"CurrentCallVoteTimeOut"` // Optional
AllowMapDownload *bool `json:"AllowMapDownload,omitempty" xmlrpc:"AllowMapDownload"` // Optional
AutoSaveReplays *bool `json:"AutoSaveReplays,omitempty" xmlrpc:"AutoSaveReplays"` // Optional
ClientInputsMaxLatency *int `json:"ClientInputsMaxLatency,omitempty" xmlrpc:"ClientInputsMaxLatency"` // Optional
DisableHorns *bool `json:"DisableHorns,omitempty" xmlrpc:"DisableHorns"` // Optional
DisableServiceAnnounces *bool `json:"DisableServiceAnnounces,omitempty" xmlrpc:"DisableServiceAnnounces"` // Optional
PacketAssembly_PacketsPerFrame *int `json:"PacketAssembly_PacketsPerFrame,omitempty" xmlrpc:"PacketAssembly_PacketsPerFrame"` // Optional
PacketAssembly_FullPacketsPerFrame *int `json:"PacketAssembly_FullPacketsPerFrame,omitempty" xmlrpc:"PacketAssembly_FullPacketsPerFrame"` // Optional
TrustClientSimu_ClientToServer_SendingRate *int `json:"TrustClientSimu_ClientToServer_SendingRate,omitempty" xmlrpc:"TrustClientSimu_ClientToServer_SendingRate"` // Optional
DelayedVisuals_ServerToClient_SendingRate *int `json:"DelayedVisuals_ServerToClient_SendingRate,omitempty" xmlrpc:"DelayedVisuals_ServerToClient_SendingRate"` // Optional
DelayedVisuals_RestrictToSpectators *bool `json:"DelayedVisuals_RestrictToSpectators,omitempty" xmlrpc:"DelayedVisuals_RestrictToSpectators"` // Optional
}
type TMServerTag ¶
type TMSkin ¶
type TMSkin struct {
Environnement string `json:"Environnement" xmlrpc:"Environnement"`
PackDesc TMPackDesc `json:"PackDesc" xmlrpc:"PackDesc"`
}
type TMSystemInfo ¶
type TMSystemInfo struct {
PublishedIp string `json:"PublishedIp"`
Port int `json:"Port"`
P2PPort int `json:"P2PPort"`
TitleId string `json:"TitleId"`
ServerLogin string `json:"ServerLogin"`
ServerPlayerId int `json:"ServerPlayerId"`
ConnectionDownloadRate int `json:"ConnectionDownloadRate"`
ConnectionUploadRate int `json:"ConnectionUploadRate"`
IsServer bool `json:"IsServer"`
IsDedicated bool `json:"IsDedicated"`
}
type TMTeamInfo ¶
type TMTeamInfo struct {
Name string `json:"Name" xmlrpc:"Name"`
ZonePath string `json:"ZonePath" xmlrpc:"ZonePath"`
City string `json:"City" xmlrpc:"City"`
EmblemUrl string `json:"EmblemUrl" xmlrpc:"EmblemUrl"`
ClubLinkUrl string `json:"ClubLinkUrl" xmlrpc:"ClubLinkUrl"`
HuePrimary float32 `json:"HuePrimary" xmlrpc:"HuePrimary"`
HueSecondary float32 `json:"HueSecondary" xmlrpc:"HueSecondary"`
RGB string `json:"RGB" xmlrpc:"RGB"`
}
Click to show internal directories.
Click to hide internal directories.