ManiaScript
Script language used in ManiaPlanet
 All Classes Files Functions Variables Enumerations Enumerator
big.h
Go to the documentation of this file.
1 class Void {};
2 class Integer{};
3 class Real{};
4 class Boolean{};
5 class Text{};
6 class Vec2{};
7 class Vec3{};
8 class Int3{};
9 class Ident{};
10 
11 struct CMlScript : public CNod {
12  enum LinkType {
19  };
23  const CMlPage Page;
27  const Integer Now;
47  const Real MouseX;
51  const Real MouseY;
67  const Boolean KeyUp;
104 };
105 
106 struct CMlEntry : public CMlControl {
114  Void StartEdition();
115 };
116 
117 struct CMlFileEntry : public CMlEntry {
122 };
123 
124 struct CMlLabel : public CMlControl {
128  Void SetText(Text newText);
137 };
138 
139 struct CMlMediaPlayer : public CMlControl {
140 };
141 
142 struct CMlQuad : public CMlControl {
146  Void ChangeImageUrl(Text fieldName);
163 };
164 
165 struct CManiaplanetPlugin : public CNod {
169  const Integer Now;
210 };
211 
212 struct CTmMode : public CMode {
222  };
228  };
233  Normal,
234  };
254  const CTmScore[] Scores;
262  Void PassOn(CTmModeEvent Event);
266  Void Discard(CTmModeEvent Event);
270  Void FakePlayers_Add(Text NickName);
286  Void Scores_Clear();
335 };
336 
337 struct CSmMode : public CMode {
338  enum EWeapon {
342  };
434  const CSmBase[] Bases;
438  const CSmBlock[] Blocks;
450  const CSmScore[] Scores;
466  Void PassOn(CSmModeEvent Event);
470  Void Discard(CSmModeEvent Event);
474  Void SpawnPlayer(CSmPlayer Player,Integer ClanNum,Integer Armor,CSmBlockSpawn BlockSpawn,Integer ActivationDate);
478  Void UnspawnPlayer(CSmPlayer Player);
482  Void ClearScores();
486  Void SetPlayerClan(CSmPlayer Player,Integer ClanNum);
490  Void SetPlayerWeapon(CSmPlayer Player,EWeapon DefaultWeapon,Boolean AutoSwitchWeapon);
494  Void SetPlayerAmmo(CSmPlayer Player,EWeapon Weapon,Integer Count);
498  Void SetPlayerAmmoMax(CSmPlayer Player,EWeapon Weapon,Integer Count);
506  Void SetNbFakePlayers(Integer NbClan1,Integer NbClan2);
519 };
520 
534 };
535 
552  const CTeam[] Teams;
560  const CSmScore[] Scores;
568  const CSmBase[] Bases;
572  const CSmBlock[] Blocks;
581 };
582 
583 struct CEditorPlugin : public CNod {
589  };
590  enum PlaceMode {
602  };
603  enum EditMode {
604  Unknown,
611  };
615  const CMap Map;
623  Void Undo();
627  Void Redo();
631  Void Quit();
635  Void Help();
639  Void Validate();
643  Void AutoSave();
647  Void SaveMap(Text FileName,Text Path);
667  const Integer Now;
723  Void RemoveAll();
763  Boolean CanPlaceBlock(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir,Boolean OnGround,Integer VariantIndex);
767  Boolean PlaceBlock(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir);
771  Boolean CanPlaceBlock_NoDestruction(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir,Boolean OnGround,Integer VariantIndex);
779  Boolean CanPlaceRoadBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
783  Boolean PlaceRoadBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
787  Boolean CanPlaceTerrainBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
791  Boolean PlaceTerrainBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
795  Boolean PlaceTerrainBlocks_NoDestruction(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
815  CBlock GetBlock(Int3 Coord);
819  Boolean RemoveBlock(Int3 Coord);
823  Boolean RemoveTerrainBlocks(Int3 StartCoord,Int3 EndCoord);
835  Void CopyPaste_AddOrSubSelection(Int3 StartCoord,Int3 EndCoord);
843  Void SaveMacroblock(CMacroblockModel MacroblockModel);
847  const CBlock[] Blocks;
900 };
901 
902 struct CSmMapType : public CMapType {
906  const CSmMode Mode;
907 };
908 
909 struct CTmMapType : public CMapType {
913  const CTmMode Mode;
914 };
915 
916 struct CNod {
920  const Ident Id;
921 };
922 
923 struct CMlPage : public CNod {
931  CMlControl GetFirstChild(Text ControlId);
939  Void GetClassChildren(Text Class,CMlFrame Frame,Boolean Recursive);
944 };
945 
946 struct CMlEvent : public CNod {
947  enum Type {
953  };
957  const Type Type;
966 };
967 
968 struct CXmlManager : public CNod {
972  CXmlDocument Create(Text Contents);
976  Void Destroy(CXmlDocument Document);
981 };
982 
983 struct CHttpManager : public CNod {
991  CHttpRequest CreatePost(Text Url,Text Resource);
995  Void Destroy(CHttpRequest Request);
999  Boolean IsValidUrl(Text Url);
1008 };
1009 
1010 struct CMlControl : public CNod {
1016  };
1021  None,
1023  };
1035  Boolean HasClass(Text Class);
1083  Void Show();
1087  Void Hide();
1091  Void Unload();
1092 };
1093 
1094 struct CUser : public CNod {
1110  const Text Name;
1114  const Text Login;
1127 };
1128 
1130  enum EType {
1132  };
1136  const EType Type;
1145 };
1146 
1150 struct CBuddiesManager : public CNod {
1155  };
1157  Offline,
1158  Online,
1159  };
1171  Void SendMessage(CBuddy Buddy,Text Type,Text Body);
1175  Void ChangePresence(Text Show,Text Status);
1179  CBuddy GetBuddyFromLogin(Text Login);
1183  const CBuddy[] Buddies;
1196 };
1197 
1198 struct CUILayer : public CNod {
1206  };
1223 };
1224 
1225 struct CMode : public CNod {
1226  enum EMedal {
1233  };
1237  const Text MapName;
1241  const CMap Map;
1245  const CUser[] Users;
1249  const CTeam[] Teams;
1257  const Integer Now;
1277  Void RequestLoadMap();
1301  Void Ladder_AddPlayer(CScore PlayerScore);
1309  Void Ladder_OpenMatch_AddPlayer(CScore PlayerScore);
1333  Void Solo_SetNewRecord(CScore PlayerScore,EMedal Medal);
1354 };
1355 
1356 struct CTmPlayer : public CPlayer {
1381 };
1382 
1383 struct CTmScore : public CScore {
1415  Void Clear();
1416 };
1417 
1418 struct CTmModeEvent : public CNod {
1419  enum EType {
1426  };
1466  };
1470  const EType Type;
1554  const Real Factor;
1555 };
1556 
1557 struct CSmPlayer : public CPlayer {
1562  };
1566  const Text Name;
1570  const Text Login;
1694  const Real AimYaw;
1719 };
1720 
1721 struct CSmModeEvent : public CNod {
1722  enum EType {
1730  };
1734  const EType Type;
1767 };
1768 
1769 struct CSmBase : public CNod {
1778 };
1779 
1780 struct CSmBlock : public CNod {
1784  const Text Tag;
1800  const CSmBase Base;
1801 };
1802 
1803 struct CSmBlockSpawn : public CSmBlock {
1804 };
1805 
1806 struct CSmBlockPole : public CSmBlock {
1819 };
1820 
1821 struct CSmScore : public CScore {
1853  Void Reset();
1854 };
1855 
1856 struct CMlScriptIngame : public CMlScript {
1857  enum LinkType {
1864  };
1876  const CUIConfig UI;
1888  const CMap Map;
1896  Void JoinTeam1();
1900  Void JoinTeam2();
1905 };
1906 
1907 struct CTmMlPlayer : public CPlayer {
1908  enum ERaceState {
1913  };
1950 };
1951 
1952 struct CTeam : public CNod {
1989 };
1990 
1991 struct CMap : public CNod {
2031  const Text MapType;
2075  const Int3 Size;
2076 };
2077 
2078 struct CBlockModel : public CCollector {
2087  };
2088  enum EProdState {
2093  };
2097  const Text Name;
2122 };
2123 
2124 struct CMacroblockModel : public CCollector {
2152  const Text Name;
2153 };
2154 
2155 struct CBlock : public CNod {
2161  };
2181  const Int3 Coord;
2194 };
2195 
2196 struct CAnchorData : public CNod {
2213 };
2214 
2215 struct CEditorPluginEvent : public CNod {
2216  enum Type {
2224  };
2228  const Type Type;
2233 };
2234 
2235 struct CMapType : public CEditorPlugin {
2240  };
2273 };
2274 
2275 struct CMlFrame : public CMlControl {
2284  };
2293 };
2294 
2295 struct CXmlDocument : public CNod {
2307  const CXmlNode[] Nodes;
2311  CXmlNode GetFirstChild(Text Name);
2312 };
2313 
2314 struct CHttpRequest : public CNod {
2318  const Text Result;
2327 };
2328 
2332 struct CBuddy : public CNod {
2336  const Text Login;
2340  const Text Name;
2358 };
2359 
2363 struct CBuddiesEvent : public CNod {
2364  enum EType {
2367  };
2371  const EType Type;
2391  const CBuddy Buddy;
2404 };
2405 
2406 struct CMapInfo : public CNod {
2434  const Text MapType;
2446  const Text Name;
2450  const Text Path;
2451 };
2452 
2453 struct CUIConfigMgr : public CNod {
2457  Void ResetAll();
2465  const CUIConfig[] UI;
2469  CUIConfig GetUI(CPlayer Player);
2481  Void UILayerDestroy(CUILayer Layer);
2486 };
2487 
2488 struct CXmlRpc : public CNod {
2496  Void SendCallback(Text Param1,Text Param2);
2497 };
2498 
2499 struct CPlayer : public CNod {
2503  const CUser User;
2507  const Text Login;
2508 };
2509 
2510 struct CTmResult : public CNod {
2517  };
2538 };
2539 
2540 struct CScore : public CNod {
2544  const CUser User;
2557 };
2558 
2559 struct CGhost : public CNod {
2560 };
2561 
2562 struct CSmSector : public CNod {
2567 };
2568 
2569 struct CSmGauge : public CNod {
2590 };
2591 
2595 struct CUIConfig : public CNod {
2605  };
2606  enum EUIStatus {
2607  None,
2612  };
2614  None,
2615  Normal,
2619  };
2621  None,
2627  };
2632  };
2633  enum EUISound {
2634  Default,
2639  EndRound,
2647  Warning,
2663  };
2665  Default,
2672  };
2932  Void SendNotice(Text Text,ENoticeLevel Level,CUser Avatar,EAvatarVariant AvatarVariant,EUISound Sound,Integer SoundVariant);
2941 };
2942 
2943 struct CCollector : public CNod {
2956 };
2957 
2964  };
2965 };
2966 
2968 };
2969 
2970 struct CBlockUnit : public CNod {
2974  const Int3 Offset;
2982  const CBlock Block;
2983 };
2984 
2985 struct CXmlNode : public CNod {
2989  const Text Name;
3001  Text GetAttributeText(Text Name,Text DefaultValue);
3009  Real GetAttributeReal(Text Name,Real DefaultValue);
3018 };
3019 
3020 struct CXmlRpcEvent : public CNod {
3021  enum EType {
3024  };
3028  const EType Type;
3032  const Text Param1;
3036  const Text Param2;
3037 };
3038 
3039 struct CBlockModelVariant : public CNod {
3055  const Int3 Size;
3068 };
3069 
3070 struct CBlockUnitModel : public CNod {
3076  };
3078  Same Dir,
3079  Symmetrical Dir,
3080  All Dir,
3081  Opposed Dir only,
3082  Perpendicular Dir only,
3083  };
3087  const Int3 Offset;
3092 };
3093 
3094 struct CBlockModelClip : public CBlockModel {
3100  };
3101 };
3102