![]() |
ManiaScript Trackmania 2020
14/07/2025
|
API for plugins to get playground info. More...
#include <2025_07_14.h>
Public Types | |
| enum | ESpectatorCameraType { Replay, Follow, Free, StandardCount, NotUsed0, NotUsed1, NotUsed2, NotUsed3, NotUsed4, NotUsed5, NotUsed6, NotUsed7, NotUsed8, NotUsed9, FollowForced, DontChange } |
| enum | ESpectatorTargetType { None, Single, AllPlayers, AllMap } |
Public Member Functions | |
| Void | QuitServer (Boolean Silent) |
| Void | QuitServerAndSetResult (Boolean Silent, Text Type, Array< Text > Data) |
| Void | JoinTeam1 () |
| Void | JoinTeam2 () |
| Void | RequestSpectatorClient (Boolean Spectator) |
| Void | SetSpectateTarget (Text Player) |
| Void | ShowProfile (Text Player) |
| Boolean | SaveReplay (Text FileName) |
| Boolean | SavePrevReplay (Text FileName) |
| Boolean | SaveMap (Text FileName) |
| Void | MapList_Request () |
| CPlaygroundClient::ESpectatorCameraType | GetSpectatorCameraType () |
| CPlaygroundClient::ESpectatorTargetType | GetSpectatorTargetType () |
| Void | SetWantedSpectatorCameraType (CPlaygroundClient::ESpectatorCameraType CameraType) |
| Void | RequestRestartMap () |
| Void | RequestNextMap () |
| Void | RequestGotoMap (Text MapUid) |
| Void | RequestSetNextMap (Text MapUid) |
| Void | RequestAutoTeamBalance () |
| Void | RequestChangeModeScriptSettings (Text SettingsXml) |
| Void | Vote_Cast (Boolean Answer) |
Public Attributes | |
| CMap *const | Map |
| Integer const | GameTime |
| CUser *const | LocalUser |
| CUIConfig *const | UI |
| CServerInfo *const | ServerInfo |
| Ident const | SettingsPlayerModelId |
| Boolean const | HasPodium |
| Boolean const | IsSpectator |
| Boolean const | IsSpectatorClient |
| Boolean const | UseClans |
| Boolean const | UseForcedClans |
| Boolean const | IsLoadingScreen |
| Boolean const | IsServerOrSolo |
| Boolean const | IsInGameMenuDisplayed |
| Array< CTeam *const > | Teams |
| Boolean const | MapList_IsInProgress |
| Array< Text > | MapList_Names |
| Array< Text > | MapList_MapUids |
| Boolean const | Request_IsInProgress |
| Boolean const | Request_Success |
| Text const | Vote_Question |
| Boolean const | Vote_CanVote |
Public Attributes inherited from CNod | |
| Ident const | Id |
API for plugins to get playground info.
Supported declare modes :
Definition at line 18302 of file 2025_07_14.h.
| Enumerator | |
|---|---|
| Replay | |
| Follow | |
| Free | |
| StandardCount | |
| NotUsed0 | |
| NotUsed1 | |
| NotUsed2 | |
| NotUsed3 | |
| NotUsed4 | |
| NotUsed5 | |
| NotUsed6 | |
| NotUsed7 | |
| NotUsed8 | |
| NotUsed9 | |
| FollowForced | |
| DontChange | |
Definition at line 18307 of file 2025_07_14.h.
| Enumerator | |
|---|---|
| None | |
| Single | |
| AllPlayers | |
| AllMap | |
Definition at line 18328 of file 2025_07_14.h.
| CPlaygroundClient::ESpectatorCameraType CPlaygroundClient::GetSpectatorCameraType | ( | ) |
| CPlaygroundClient::ESpectatorTargetType CPlaygroundClient::GetSpectatorTargetType | ( | ) |
| Void CPlaygroundClient::JoinTeam1 | ( | ) |
| Void CPlaygroundClient::JoinTeam2 | ( | ) |
| Void CPlaygroundClient::MapList_Request | ( | ) |
| Void CPlaygroundClient::RequestAutoTeamBalance | ( | ) |
Change some settings from the mode with new values. No need to include unchanged settings. ex: '<script_settings><setting name="S_TimeLimit" type="integer" value="300"/><script_settings/>' nb: you can use TriggerPageAction('maniaplanet:editsettings'); to use the legacy UI.
| Void CPlaygroundClient::RequestNextMap | ( | ) |
| Void CPlaygroundClient::RequestRestartMap | ( | ) |
Request change of IsSpectatorClient (not immediate, and it may be refused). Caveat: will not set Request_Success
Save the current map to a file (if the server IsMapDownloadAllowed). Filename is optional.
Save the current replay to a file. Filename is optional.
| Void CPlaygroundClient::SetWantedSpectatorCameraType | ( | CPlaygroundClient::ESpectatorCameraType | CameraType | ) |
| Integer const CPlaygroundClient::GameTime |
Definition at line 18341 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::HasPodium |
Definition at line 18361 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::IsInGameMenuDisplayed |
Definition at line 18397 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::IsLoadingScreen |
Definition at line 18381 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::IsServerOrSolo |
Definition at line 18385 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::IsSpectator |
Is in spectator mode - may be only for a short time between rounds.
Definition at line 18365 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::IsSpectatorClient |
Client actually desires to spectate instead of playing.
Definition at line 18369 of file 2025_07_14.h.
| CUser* const CPlaygroundClient::LocalUser |
Definition at line 18345 of file 2025_07_14.h.
| CMap* const CPlaygroundClient::Map |
Null when no map loaded.
Definition at line 18337 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::MapList_IsInProgress |
Definition at line 18453 of file 2025_07_14.h.
Definition at line 18461 of file 2025_07_14.h.
Definition at line 18457 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::Request_IsInProgress |
Definition at line 18465 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::Request_Success |
Definition at line 18469 of file 2025_07_14.h.
| CServerInfo* const CPlaygroundClient::ServerInfo |
Definition at line 18353 of file 2025_07_14.h.
| Ident const CPlaygroundClient::SettingsPlayerModelId |
Definition at line 18357 of file 2025_07_14.h.
Definition at line 18409 of file 2025_07_14.h.
| CUIConfig* const CPlaygroundClient::UI |
Definition at line 18349 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::UseClans |
Definition at line 18373 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::UseForcedClans |
Definition at line 18377 of file 2025_07_14.h.
| Boolean const CPlaygroundClient::Vote_CanVote |
Definition at line 18502 of file 2025_07_14.h.
| Text const CPlaygroundClient::Vote_Question |
Definition at line 18498 of file 2025_07_14.h.