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 CUIConfig UI;
31  const Integer Now;
51  const Real MouseX;
55  const Real MouseY;
71  const Boolean KeyUp;
100 };
101 
102 struct CMlEntry : public CMlControl {
107 };
108 
109 struct CMlFileEntry : public CMlEntry {
114 };
115 
116 struct CMlLabel : public CMlControl {
120  Void SetText(Text newText);
125 };
126 
127 struct CMlMediaPlayer : public CMlControl {
128 };
129 
130 struct CMlQuad : public CMlControl {
134  Void ChangeImageUrl(Text fieldName);
143 };
144 
145 struct CTmMode : public CMode {
155  };
161  };
166  Normal,
167  };
187  const CTmScore[] Scores;
195  Void PassOn(CTmModeEvent Event);
199  Void Discard(CTmModeEvent Event);
203  Void FakePlayers_Add(Text NickName);
219  Void Scores_Clear();
268 };
269 
270 struct CSmMode : public CMode {
271  enum EWeapon {
275  };
359  const CSmBase[] Bases;
363  const CSmBlock[] Blocks;
375  const CSmScore[] Scores;
391  Void PassOn(CSmModeEvent Event);
395  Void Discard(CSmModeEvent Event);
399  Void SpawnPlayer(CSmPlayer Player,Integer ClanNum,Integer Armor,CSmBlockSpawn BlockSpawn,Integer ActivationDate);
403  Void UnspawnPlayer(CSmPlayer Player);
407  Void SetPlayerClan(CSmPlayer Player,Integer ClanNum);
411  Void SetPlayerWeapon(CSmPlayer Player,EWeapon DefaultWeapon,Boolean AutoSwitchWeapon);
415  Void SetPlayerAmmo(CSmPlayer Player,EWeapon Weapon,Integer Count);
419  Void SetPlayerAmmoMax(CSmPlayer Player,EWeapon Weapon,Integer Count);
427  Void SetNbFakePlayers(Integer NbClan1,Integer NbClan2);
440 };
441 
455 };
456 
473  const CTeam[] Teams;
478 };
479 
480 struct CPlugin : public CNod {
486  };
487  enum PlaceMode {
499  };
500  enum EditMode {
501  Unknown,
508  };
512  const CMap Map;
520  Void Undo();
524  Void Redo();
528  Void Quit();
532  Void Help();
536  Void Validate();
540  Void AutoSave();
544  Void SaveMap(Text FileName,Text Path);
564  const Integer Now;
640  Boolean CanPlaceBlock(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir,Boolean OnGround,Integer VariantIndex);
644  Boolean PlaceBlock(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir);
648  Boolean CanPlaceBlock_NoDestruction(CBlockModel BlockModel,Int3 Coord,CardinalDirections Dir,Boolean OnGround,Integer VariantIndex);
656  Boolean CanPlaceRoadBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
660  Boolean PlaceRoadBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
664  Boolean CanPlaceTerrainBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
668  Boolean PlaceTerrainBlocks(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
672  Boolean PlaceTerrainBlocks_NoDestruction(CBlockModel BlockModel,Int3 StartCoord,Int3 EndCoord);
692  CBlock GetBlock(Int3 Coord);
696  Boolean RemoveBlock(Int3 Coord);
700  Boolean RemoveTerrainBlocks(Int3 StartCoord,Int3 EndCoord);
712  Void CopyPaste_AddOrSubSelection(Int3 StartCoord,Int3 EndCoord);
720  Void SaveMacroblock(CMacroblockModel MacroblockModel);
724  const CBlock[] Blocks;
761 };
762 
763 struct CSmMapType : public CMapType {
767  const CSmMode Mode;
768 };
769 
770 struct CTmMapType : public CMapType {
774  const CTmMode Mode;
775 };
776 
777 struct CNod {
781  const Ident Id;
782 };
783 
784 struct CMlPage : public CNod {
792  CMlControl GetFirstChild(Text ControlId);
797 };
798 
802 struct CUIConfig : public CNod {
803  enum EUISequence {
812  };
813  enum EUIStatus {
814  None,
819  };
820  enum EVisibility {
821  None,
822  Normal,
826  };
828  None,
834  };
839  };
840  enum EUISound {
841  Default,
846  EndRound,
854  Warning,
863  };
865  Default,
872  };
1120  Void SendNotice(Text Text,ENoticeLevel Level,CUser Avatar,EAvatarVariant AvatarVariant,EUISound Sound,Integer SoundVariant);
1129 };
1130 
1131 struct CMlEvent : public CNod {
1132  enum Type {
1137  };
1141  const Type Type;
1150 };
1151 
1152 struct CMlControl : public CNod {
1158  };
1163  None,
1165  };
1213  Void Show();
1217  Void Hide();
1221  Void Unload();
1222 };
1223 
1224 struct CMode : public CNod {
1225  enum EMedal {
1232  };
1236  const Text MapName;
1240  const CMap Map;
1244  const CUser[] Users;
1248  const CTeam[] Teams;
1252  const Integer Now;
1272  Void RequestLoadMap();
1296  Void Ladder_OpenMatch_AddPlayer(CScore PlayerScore);
1320  Void Solo_SetNewRecord(CScore PlayerScore,EMedal Medal);
1333 };
1334 
1335 struct CTmPlayer : public CPlayer {
1360 };
1361 
1362 struct CTmScore : public CScore {
1394  Void Clear();
1395 };
1396 
1397 struct CTmModeEvent : public CNod {
1398  enum EType {
1405  };
1445  };
1449  const EType Type;
1533  const Real Factor;
1534 };
1535 
1536 struct CSmPlayer : public CPlayer {
1541  };
1545  const Text Name;
1549  const Text Login;
1665  const Real AimYaw;
1690 };
1691 
1692 struct CSmModeEvent : public CNod {
1693  enum EType {
1700  };
1704  const EType Type;
1733 };
1734 
1735 struct CSmBase : public CNod {
1744 };
1745 
1746 struct CSmBlock : public CNod {
1750  const Text Tag;
1766  const CSmBase Base;
1767 };
1768 
1769 struct CSmBlockSpawn : public CSmBlock {
1770 };
1771 
1772 struct CSmBlockPole : public CSmBlock {
1785 };
1786 
1787 struct CSmScore : public CScore {
1819  Void Reset();
1820 };
1821 
1822 struct CMlScriptIngame : public CMlScript {
1823  enum LinkType {
1830  };
1838  const CMap Map;
1850  Void JoinTeam1();
1854  Void JoinTeam2();
1855 };
1856 
1857 struct CTmMlPlayer : public CPlayer {
1858  enum ERaceState {
1863  };
1900 };
1901 
1902 struct CTeam : public CNod {
1919 };
1920 
1921 struct CMap : public CNod {
1957  const Text MapType;
2001  const Int3 Size;
2002 };
2003 
2004 struct CBlockModel : public CCollector {
2013  };
2017  const Text Name;
2042 };
2043 
2044 struct CMacroblockModel : public CCollector {
2072  const Text Name;
2073 };
2074 
2075 struct CBlock : public CNod {
2081  };
2101  const Int3 Coord;
2114 };
2115 
2116 struct CAnchorData : public CNod {
2133 };
2134 
2135 struct CPluginEvent : public CNod {
2136  enum Type {
2144  };
2148  const Type Type;
2153 };
2154 
2155 struct CMapType : public CPlugin {
2160  };
2193 };
2194 
2195 struct CMlFrame : public CMlControl {
2204  };
2213 };
2214 
2215 struct CUILayer : public CNod {
2220  };
2233 };
2234 
2235 struct CUser : public CNod {
2243  const Text Name;
2247  const Text Login;
2252 };
2253 
2254 struct CMapInfo : public CNod {
2282  const Text MapType;
2294  const Text Name;
2298  const Text Path;
2299 };
2300 
2301 struct CUIConfigMgr : public CNod {
2305  Void ResetAll();
2313  const CUIConfig[] UI;
2317  CUIConfig GetUI(CPlayer Player);
2329  Void UILayerDestroy(CUILayer Layer);
2334 };
2335 
2336 struct CXmlRpc : public CNod {
2344  Void SendCallback(Text Param1,Text Param2);
2345 };
2346 
2347 struct CPlayer : public CNod {
2351  const CUser User;
2355  const Text Login;
2356 };
2357 
2358 struct CTmResult : public CNod {
2365  };
2386 };
2387 
2388 struct CScore : public CNod {
2392  const CUser User;
2405 };
2406 
2407 struct CGhost : public CNod {
2408 };
2409 
2410 struct CSmSector : public CNod {
2415 };
2416 
2417 struct CSmGauge : public CNod {
2438 };
2439 
2440 struct CCollector : public CNod {
2453 };
2454 
2461  };
2462 };
2463 
2465 };
2466 
2467 struct CBlockUnit : public CNod {
2471  const Int3 Offset;
2479  const CBlock Block;
2480 };
2481 
2482 struct CXmlRpcEvent : public CNod {
2483  enum EType {
2486  };
2490  const EType Type;
2494  const Text Param1;
2498  const Text Param2;
2499 };
2500 
2501 struct CBlockModelVariant : public CNod {
2517  const Int3 Size;
2530 };
2531 
2532 struct CBlockUnitModel : public CNod {
2536  const Int3 Offset;
2541 };
2542 
2543 struct CBlockModelClip : public CBlockModel {
2549  };
2550 };
2551