ManiaScript
Script language used in ManiaPlanet
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Types | Public Member Functions | Public Attributes | List of all members
CTmMode Struct Reference

#include <big.h>

Inheritance diagram for CTmMode:
CMode CNod

Public Types

enum  ETmScoreSortOrder {
  TotalPoints, BestRace_Time, BestRace_Stunts, BestRace_NbRespawns,
  BestRace_CheckpointsProgress, PrevRace_Time, Name, LadderRankSortValue
}
 
enum  ETMRespawnBehaviour { Normal, DoNothing, GiveUpBeforeFirstCheckPoint, AlwaysGiveUp }
 
enum  ETmRaceChronoBehaviour { Auto, Hidden, CountDown, Normal }
 
enum  EPersonalGhost { Disabled, Latest, FastestRace }
 
- Public Types inherited from CMode
enum  EMedal {
  None, Finished, Bronze, Silver,
  Gold, Author
}
 

Public Member Functions

Void PassOn (CTmModeEvent Event)
 
Void Discard (CTmModeEvent Event)
 
Void Scores_Sort (ETmScoreSortOrder SortOrder)
 
Void Scores_Clear ()
 
Void Ladder_ComputeRank (ETmScoreSortOrder SortOrder)
 
- Public Member Functions inherited from CMode
Void TweakTeamColorsToAvoidHueOverlap ()
 
Void RequestLoadMap ()
 
Void RequestUnloadMap ()
 
Void Ladder_OpenMatch_Request ()
 
Void Ladder_AddPlayer (CScore PlayerScore)
 
Void Ladder_OpenMatch_BeginRequest ()
 
Void Ladder_OpenMatch_AddPlayer (CScore PlayerScore)
 
Void Ladder_OpenMatch_EndRequest ()
 
Void Ladder_CloseMatchRequest ()
 
Void Ladder_CancelMatchRequest ()
 
Void Ladder_SetResultsVersion (Integer Version)
 
Void Ladder_SetMatchMakingMatchId (Integer MatchId)
 
Void Ladder_EnableChallengeMode (Boolean Enable)
 
Boolean Admin_KickUser (CUser User, Text Reason)
 
Void Admin_SetLobbyInfo (Boolean IsLobby, Integer LobbyPlayerCount, Integer LobbyMaxPlayerCount, Real LobbyPlayersLevel)
 
Void AutoTeamBalance ()
 
Void Solo_SetNewRecord (CScore PlayerScore, EMedal PlayerScore)
 
Integer Synchro_AddBarrier ()
 
Boolean Synchro_BarrierReached (Integer Barrier)
 
Boolean Users_AreAllies (CUser User1, CUser User2)
 
Void Users_RequestSwitchToSpectator (CUser User)
 
CUser Users_CreateFake (Text NickName, Integer RequestedTeam)
 
Void Users_DestroyFake (CUser User)
 
Void Users_SetNbFakeUsers (Integer NbTeam1, Integer NbTeam2)
 
Void Users_DestroyAllFakes ()
 
Void ItemList_Begin ()
 
Ident ItemList_Add (Text ModelName)
 
Ident ItemList_AddWithSkin (Text ModelName, Text SkinName)
 
Void ItemList_End ()
 
Void DemoToken_StartUsingToken ()
 
Void DemoToken_StopUsingToken ()
 
Void DemoToken_GetAndUseToken (CUser User)
 
Void ActionList_Begin ()
 
Ident ActionList_Add (Text ActionName)
 
Void ActionList_End ()
 
Void Replay_Start ()
 
Void Replay_Stop ()
 

Public Attributes

const CTmPlayer[] AllPlayers
 
const CTmPlayer[] Spectators
 
const CTmPlayer[] Players
 
const CTmPlayer[] PlayersRacing
 
const CTmPlayer[] PlayersWaiting
 
const CTmScore[] Scores
 
Integer Clan1Score
 
Integer Clan2Score
 
Integer[] ClanScores
 
const CTmModeEvent[] PendingEvents
 
Integer CutOffTimeLimit
 
Integer NbLaps
 
Boolean IndependantLaps
 
Boolean UseClans
 
ETMRespawnBehaviour RespawnBehaviour
 
Boolean UiRounds
 
Boolean UiLaps
 
Boolean UiStuntsMode
 
Boolean UiDisplayStuntsNames
 
Boolean UiDisableHelpMessage
 
Integer UiScoresPointsLimit
 
ETmRaceChronoBehaviour UiRaceChrono
 
Boolean HideOpponents
 
Integer ForceMaxOpponents
 
Boolean EnableLegacyXmlRpcCallbacks
 
Boolean MedalGhost_ShowGold
 
Boolean MedalGhost_ShowSilver
 
Boolean MedalGhost_ShowBronze
 
EPersonalGhost PersonalGhost
 
const Vec3 MapStartLinePos
 
const Vec3[] MapCheckpointPos
 
const Vec3[] MapFinishLinePos
 
const Boolean MapIsLapRace
 
const Integer MapNbLaps
 
- Public Attributes inherited from CMode
Text ModeStatusMessage
 
const CTitle LoadedTitle
 
const Text ServerLogin
 
const Text ServerName
 
const Text ServerModeName
 
const Text MapName
 
const CMap Map
 
const Text MapPlayerModelName
 
const CUser[] Users
 
const CTeam[] Teams
 
Text NeutralEmblemUrl
 
const Text ForcedClubLinkUrl1
 
const Text ForcedClubLinkUrl2
 
const Integer Now
 
const Integer Period
 
Boolean MatchEndRequested
 
const Boolean ServerShutdownRequested
 
const Boolean MapLoaded
 
const CMapInfo[] MapList
 
Integer NextMapIndex
 
const CUIConfigMgr UIManager
 
const Boolean Ladder_RequestInProgress
 
const Boolean Solo_NewRecordSequenceInProgress
 
const CXmlRpc XmlRpc
 
const CXmlManager Xml
 
const CHttpManager Http
 
Boolean UseMinimap
 
Boolean Replay_AutoStart
 
- Public Attributes inherited from CNod
const Ident Id
 

Detailed Description

Supported declare modes : Local Persistent Rules API for TrackMania gamemodes.

Member Enumeration Documentation

Enumerator
Disabled 
Latest 
FastestRace 
Enumerator
Auto 
Hidden 
CountDown 
Normal 
Enumerator
Normal 
DoNothing 
GiveUpBeforeFirstCheckPoint 
AlwaysGiveUp 
Enumerator
TotalPoints 
BestRace_Time 
BestRace_Stunts 
BestRace_NbRespawns 
BestRace_CheckpointsProgress 
PrevRace_Time 
Name 
LadderRankSortValue 

Member Function Documentation

Void CTmMode::Discard ( CTmModeEvent  Event)
Void CTmMode::Ladder_ComputeRank ( ETmScoreSortOrder  SortOrder)
Void CTmMode::PassOn ( CTmModeEvent  Event)
Void CTmMode::Scores_Clear ( )
Void CTmMode::Scores_Sort ( ETmScoreSortOrder  SortOrder)

Member Data Documentation

const CTmPlayer [] CTmMode::AllPlayers
Integer CTmMode::Clan1Score
Integer CTmMode::Clan2Score
Integer [] CTmMode::ClanScores
Integer CTmMode::CutOffTimeLimit
Boolean CTmMode::EnableLegacyXmlRpcCallbacks
Integer CTmMode::ForceMaxOpponents
Boolean CTmMode::HideOpponents
Boolean CTmMode::IndependantLaps
const Vec3 [] CTmMode::MapCheckpointPos
const Vec3 [] CTmMode::MapFinishLinePos
const Boolean CTmMode::MapIsLapRace
const Integer CTmMode::MapNbLaps
const Vec3 CTmMode::MapStartLinePos
Boolean CTmMode::MedalGhost_ShowBronze
Boolean CTmMode::MedalGhost_ShowGold
Boolean CTmMode::MedalGhost_ShowSilver
Integer CTmMode::NbLaps
const CTmModeEvent [] CTmMode::PendingEvents
EPersonalGhost CTmMode::PersonalGhost
const CTmPlayer [] CTmMode::Players
const CTmPlayer [] CTmMode::PlayersRacing
const CTmPlayer [] CTmMode::PlayersWaiting
ETMRespawnBehaviour CTmMode::RespawnBehaviour
const CTmScore [] CTmMode::Scores
const CTmPlayer [] CTmMode::Spectators
Boolean CTmMode::UiDisableHelpMessage
Boolean CTmMode::UiDisplayStuntsNames
Boolean CTmMode::UiLaps
ETmRaceChronoBehaviour CTmMode::UiRaceChrono
Boolean CTmMode::UiRounds
Integer CTmMode::UiScoresPointsLimit
Boolean CTmMode::UiStuntsMode
Boolean CTmMode::UseClans

The documentation for this struct was generated from the following file: