ManiaScript
Script language used in ManiaPlanet
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
input
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
15
struct
CMlScript
:
public
CNod
{
16
enum
LinkType
{
17
ExternalBrowser
,
18
ManialinkBrowser
,
19
Goto
,
20
ExternalFromId
,
21
ManialinkFromId
,
22
GotoFromId
,
23
};
27
const
CMlPage
Page
;
31
const
Boolean
PageIsVisible
;
35
const
Integer
Now
;
39
const
Integer
CurrentTime
;
43
const
Text
CurrentTimeText
;
47
const
Text
CurrentLocalDateText
;
51
const
CUser
LocalUser
;
55
const
CTitle
LoadedTitle
;
59
const
CMlEvent
[]
PendingEvents
;
63
const
Real
MouseX
;
67
const
Real
MouseY
;
71
const
Boolean
MouseLeftButton
;
75
const
Boolean
MouseRightButton
;
79
const
Boolean
MouseMiddleButton
;
83
const
Boolean
KeyUp
;
87
const
Boolean
KeyDown
;
91
const
Boolean
KeyLeft
;
95
const
Boolean
KeyRight
;
99
const
Boolean
KeyReturn
;
103
const
Boolean
KeySpace
;
107
const
Boolean
KeyDelete
;
111
Boolean
IsKeyPressed
(
Integer
KeyCode);
115
Boolean
EnableMenuNavigationInputs
;
119
Void
OpenLink
(
Text
Url,
LinkType
LinkType
);
123
Void
TriggerPageAction
(
Text
ActionString);
127
const
CXmlManager
Xml
;
131
const
CHttpManager
Http
;
135
const
CAudioManager
Audio
;
136
};
137
142
struct
CMlEntry
:
public
CMlControl
{
146
Text
Value
;
150
Void
StartEdition
();
154
Integer
MaxLine
;
158
Boolean
AutoNewLine
;
159
};
160
165
struct
CMlFileEntry
:
public
CMlEntry
{
169
const
Text
FullFileName
;
170
};
171
176
struct
CMlLabel
:
public
CMlControl
{
180
Void
SetText
(
Text
NewText);
184
Text
Value
;
188
const
Integer
ValueLineCount
;
192
Integer
MaxLine
;
196
Boolean
AutoNewLine
;
200
Real
Opacity
;
204
Vec3
TextColor
;
208
Integer
TextSize
;
212
Real
ComputeWidth
(
Text
Text
);
213
};
214
219
struct
CMlMediaPlayer
:
public
CMlControl
{
220
};
221
226
struct
CMlQuad
:
public
CMlControl
{
227
enum
EKeepRatioMode
{
228
Inactive
,
229
Clip
,
230
Fit
,
231
};
235
Void
ChangeImageUrl
(
Text
fieldName);
239
Text
ImageUrl
;
243
Text
ImageUrlFocus
;
247
Text
Style
;
251
Text
Substyle
;
255
Boolean
StyleSelected
;
259
const
Boolean
DownloadInProgress
;
263
Vec3
Colorize
;
267
Vec3
ModulateColor
;
271
Vec3
BgColor
;
275
Vec3
BgColorFocus
;
279
Real
Opacity
;
283
EKeepRatioMode
KeepRatio
;
284
};
285
290
struct
CMlGauge
:
public
CMlControl
{
294
Text
Style
;
298
Void
SetRatio
(
Real
NewRatio);
302
Void
SetClan
(
Integer
NewClan);
306
Real
Ratio
;
310
Real
GradingRatio
;
314
Integer
Clan
;
318
Vec3
Color
;
322
Boolean
DrawBackground
;
326
Boolean
DrawBlockBackground
;
330
Boolean
CenteredBar
;
331
};
332
337
struct
CMlGraph
:
public
CMlControl
{
341
Vec2
CoordsMin
;
345
Vec2
CoordsMax
;
349
CMlGraphCurve
AddCurve
();
353
Void
RemoveCurve
(
CMlGraphCurve
Curve);
357
CMlGraphCurve
[]
Curves
;
358
};
359
364
struct
CMlMinimap
:
public
CMlControl
{
368
Vec3
WorldPosition
;
372
Vec2
MapPosition
;
376
Real
MapYaw
;
380
Real
ZoomFactor
;
381
};
382
387
struct
CMlCamera
:
public
CMlControl
{
388
};
389
394
struct
CMlBrowser
:
public
CMlScript
{
395
enum
EBuddyAction
{
396
Add
,
397
Invite
,
398
Remove
,
399
};
400
enum
EBuddyResult
{
401
Ok
,
402
Error
,
403
NotFinished
,
404
};
408
const
CMap
CurMap
;
412
Void
ShowCurMapCard
();
416
const
EBuddyResult
BuddyDoResult
;
420
const
Text
BuddyDoErrorMessage
;
424
const
Boolean
IsInBrowser
;
428
Void
BrowserBack
();
432
Void
BrowserQuit
();
436
Void
BrowserHome
();
440
Void
BrowserReload
();
444
Text
BrowserFocusedFrameId
;
448
Void
SetLocalUserClubLink
(
Text
ClubLink);
449
};
450
455
struct
CMlApp
:
public
CNod
{
456
enum
EUISound
{
457
Alert
,
458
ShowDialog
,
459
HideDialog
,
460
};
464
const
Integer
Now
;
468
const
CMlAppEvent
[]
PendingEvents
;
472
const
Text
CurrentLocalDateText
;
476
const
Real
MouseX
;
480
const
Real
MouseY
;
484
const
Boolean
MouseLeftButton
;
488
const
Boolean
MouseRightButton
;
492
const
Boolean
MouseMiddleButton
;
496
Boolean
IsKeyPressed
(
Integer
KeyCode);
500
const
CUILayer
[]
UILayers
;
504
CUILayer
UILayerCreate
();
508
Void
UILayerDestroy
(
CUILayer
Layer);
512
Void
UILayerDestroyAll
();
516
Void
LayerCustomEvent
(
CUILayer
Layer,
Text
Type,
Text
[] Data);
520
const
CXmlManager
Xml
;
524
const
CHttpManager
Http
;
528
const
CAudioManager
Audio
;
532
Void
PlaySound
(
EUISound
Sound,
Integer
SoundVariant);
533
};
534
539
struct
CMlAppLayer
:
public
CMlBrowser
{
543
Void
SendCustomEvent
(
Text
Type,
Text
[] Data);
544
};
545
549
struct
CMlAppEvent
:
public
CNod
{
550
enum
EType
{
551
LayerCustomEvent
,
552
KeyPress
,
553
ExternalCustomEvent
,
554
};
558
const
EType
Type
;
562
const
CUILayer
CustomEventLayer
;
566
const
Text
CustomEventType
;
570
const
Text
[]
CustomEventData
;
574
const
Text
ExternalEventType
;
578
const
Text
[]
ExternalEventData
;
582
const
Integer
KeyCode
;
586
const
Text
KeyName
;
587
};
588
592
struct
CStation
:
public
CNod
{
596
const
CTitle
Title
;
600
const
Integer
AudienceRegisteredUsers
;
604
const
Integer
CampaignMedalsMax
;
608
const
Integer
CampaignMedalsCurrent
;
612
const
Integer
CampaignMedalsRanking
;
616
const
Real
LadderPoints
;
620
const
Integer
LadderRank
;
621
};
622
627
struct
CMlStation
:
public
CMlBrowser
{
631
const
CStation
Station
;
635
Void
EnterStation
();
636
};
637
641
struct
CEditorPlugin
:
public
CNod
{
642
enum
CardinalDirections
{
643
North
,
644
East
,
645
South
,
646
West
,
647
};
648
enum
PlaceMode
{
649
Unknown
,
650
Terraform
,
651
Block
,
652
Macroblock
,
653
Skin
,
654
CopyPaste
,
655
Test
,
656
Plugin
,
657
CustomSelection
,
658
OffZone
,
659
BlockProperty
,
660
Path
,
661
GhostBlock
,
662
};
663
enum
EditMode
{
664
Unknown
,
665
Place
,
666
FreeLook
,
667
Erase
,
668
Pick
,
669
SelectionAdd
,
670
SelectionRemove
,
671
};
675
const
CMap
Map
;
679
Void
ComputeShadows
();
683
Void
Undo
();
687
Void
Redo
();
691
Void
Quit
();
695
Void
Help
();
699
Void
Validate
();
703
Void
AutoSave
();
707
Void
SaveMap
(
Text
FileName,
Text
Path
);
711
PlaceMode
PlaceMode
;
715
EditMode
EditMode
;
719
Boolean
UndergroundMode
;
723
Boolean
BlockStockMode
;
727
const
Integer
Now
;
731
Int3
CursorCoord
;
735
CardinalDirections
CursorDir
;
739
CBlockModel
CursorBlockModel
;
743
CBlockModel
CursorTerrainBlockModel
;
747
CMacroblockModel
CursorMacroblockModel
;
751
Real
CameraVAngle
;
755
Real
CameraHAngle
;
759
Real
CameraToTargetDistance
;
763
Vec3
TargetedPosition
;
767
Boolean
EnableAirMapping
;
771
Boolean
EnableMixMapping
;
775
Void
RemoveAllBlocks
();
779
Void
RemoveAllTerrain
();
783
Void
RemoveAllOffZone
();
787
Void
RemoveAllObjects
();
791
Void
RemoveAll
();
795
Void
RemoveAllBlocksAndTerrain
();
799
Void
ShowCustomSelection
();
803
Void
HideCustomSelection
();
807
Void
CopyPaste_Copy
();
811
Void
CopyPaste_Cut
();
815
Void
CopyPaste_Remove
();
819
Void
CopyPaste_SelectAll
();
823
Void
CopyPaste_ResetSelection
();
827
Void
OpenToolsMenu
();
831
Boolean
CanPlaceBlock
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir,
Boolean
OnGround,
Integer
VariantIndex);
835
Boolean
PlaceBlock
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
839
Boolean
CanPlaceBlock_NoDestruction
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir,
Boolean
OnGround,
Integer
VariantIndex);
843
Boolean
PlaceBlock_NoDestruction
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
847
Boolean
CanPlaceRoadBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
851
Boolean
PlaceRoadBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
855
Boolean
CanPlaceTerrainBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
859
Boolean
PlaceTerrainBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
863
Boolean
PlaceTerrainBlocks_NoDestruction
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
867
Boolean
CanPlaceMacroblock
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
871
Boolean
PlaceMacroblock
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
875
Boolean
CanPlaceMacroblock_NoDestruction
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
879
Boolean
PlaceMacroblock_NoDestruction
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
883
CBlock
GetBlock
(
Int3
Coord);
887
Boolean
RemoveBlock
(
Int3
Coord);
891
Boolean
RemoveTerrainBlocks
(
Int3
StartCoord,
Int3
EndCoord);
895
Integer
GetBlockGroundHeight
(
CBlockModel
BlockModel,
Integer
CoordX,
Integer
CoordZ,
CardinalDirections
Dir);
899
CBlock
GetStartLineBlock
();
903
Void
CopyPaste_AddOrSubSelection
(
Int3
StartCoord,
Int3
EndCoord);
907
Boolean
CopyPaste_Symmetrize
();
911
Void
SaveMacroblock
(
CMacroblockModel
MacroblockModel);
915
Integer
GetInterfaceNumber
(
CCollector
Collector);
919
Void
SetInterfaceNumber
(
CCollector
Collector,
Integer
NewValue);
923
CMacroblockModel
GetMacroblockModelFromName
(
Text
MacroblockModelName);
927
CBlockModel
GetTerrainBlockModelFromName
(
Text
TerrainBlockModelName);
931
CBlockModel
GetBlockModelFromName
(
Text
BlockModelName);
935
const
CItemAnchor
[]
Items
;
939
const
Text
[]
MediatrackIngameClips
;
943
const
CBlock
[]
Blocks
;
947
const
CBlockModel
[]
BlockModels
;
951
const
CBlockModel
[]
TerrainBlockModels
;
955
const
CMacroblockModel
[]
MacroblockModels
;
959
const
CAnchorData
[]
AnchorData
;
963
const
CEditorPluginEvent
[]
PendingEvents
;
967
Int3
[]
CustomSelectionCoords
;
971
Vec3
CustomSelectionRGB
;
975
const
CUILayer
[]
UILayers
;
979
CUILayer
UILayerCreate
();
983
Void
UILayerDestroy
(
CUILayer
Layer);
987
Void
UILayerDestroyAll
();
991
Text
ManialinkText
;
995
const
CMlPage
ManialinkPage
;
996
};
997
1002
struct
CSmMode
:
public
CMode
{
1003
enum
EWeapon
{
1004
Laser
,
1005
Rocket
,
1006
Nucleus
,
1007
Arrow
,
1008
};
1009
enum
EActionSlot
{
1010
Slot_A
,
1011
Slot_B
,
1012
Slot_C
,
1013
Slot_D
,
1014
Slot_E
,
1015
Slot_F
,
1016
Slot_G
,
1017
Slot_H
,
1018
};
1019
enum
EActionInput
{
1020
Weapon
,
1021
Movement
,
1022
Activable1
,
1023
Activable2
,
1024
Activable3
,
1025
Activable4
,
1026
None
,
1027
};
1031
Integer
StartTime
;
1035
Integer
EndTime
;
1039
Boolean
UseClans
;
1043
Boolean
UseForcedClans
;
1047
Boolean
UsePvPCollisions
;
1051
Boolean
UsePvPWeapons
;
1055
Boolean
UseInterractiveScreensIn3d
;
1059
Boolean
UseLaserVsBullets
;
1063
Boolean
UseLaserSkewering
;
1067
Boolean
UsePlayerTagging
;
1071
Boolean
UseBeaconsWithRecipients
;
1075
Boolean
UseAmmoBonusOnHit
;
1079
Boolean
UseSameWallJump
;
1083
Boolean
UseAllies
;
1087
Boolean
UseAutoSpawnBots
;
1091
Boolean
ForceNavMapsComputation
;
1095
Integer
GameplayVersion
;
1099
Boolean
UseProtectClanmates
;
1103
Real
OffZoneRadius
;
1107
Real
OffZoneRadiusSpeed
;
1111
Ident
OffZoneCenterLandmarkId
;
1115
const
Integer
PlayersNbTotal
;
1119
const
Integer
PlayersNbAlive
;
1123
const
Integer
PlayersNbDead
;
1127
const
Integer
ClansNbTotal
;
1131
const
Integer
ClansNbAlive
;
1135
const
Integer
ClansNbDead
;
1139
const
Integer
[]
ClansNbPlayers
;
1143
const
Integer
[]
ClansNbPlayersAlive
;
1147
const
CSmPlayer
[]
Players
;
1151
const
CSmPlayer
[]
BotPlayers
;
1155
const
CSmPlayer
[]
Spectators
;
1159
const
CSmPlayer
[]
AllPlayers
;
1163
const
CSmModeEvent
[]
PendingEvents
;
1167
const
CSmMapBase
[]
MapBases
;
1171
const
CSmMapLandmark
[]
MapLandmarks
;
1175
const
CSmMapLandmark
[]
MapLandmarks_PlayerSpawn
;
1179
const
CSmMapLandmark
[]
MapLandmarks_Gauge
;
1183
const
CSmMapLandmark
[]
MapLandmarks_BotPath
;
1187
const
CSmMapLandmark
[]
MapLandmarks_ObjectAnchor
;
1191
const
CSmMapLandmark
[]
MapLandmarks_Gate
;
1195
const
CSmScore
[]
Scores
;
1199
Integer
[]
ClanScores
;
1203
Void
PassOn
(
CSmModeEvent
Event);
1207
Void
Discard
(
CSmModeEvent
Event);
1211
Void
SpawnPlayer
(
CSmPlayer
Player,
Integer
ClanNum,
Integer
Armor,
CSmMapPlayerSpawn
PlayerSpawn,
Integer
ActivationDate);
1215
Void
SpawnBotPlayer
(
CSmPlayer
Player,
Integer
ClanNum,
Integer
Armor,
CSmMapPlayerSpawn
PlayerSpawn,
Integer
ActivationDate);
1219
Void
SpawnBotPlayer
(
CSmPlayer
Player,
Integer
ClanNum,
Integer
Armor,
CSmMapBotPath
BotPath,
Integer
ActivationDate);
1223
Void
UnspawnPlayer
(
CSmPlayer
Player);
1227
Void
ClearScores
();
1231
Void
SetPlayerClan
(
CSmPlayer
Player,
Integer
ClanNum);
1235
Void
SetPlayerWeapon
(
CSmPlayer
Player,
EWeapon
DefaultWeapon,
Boolean
AutoSwitchWeapon);
1239
Void
SetPlayerReloadAllWeapons
(
CSmPlayer
Player,
Boolean
ReloadAllWeapons);
1243
Void
SetPlayerAmmo
(
CSmPlayer
Player,
EWeapon
Weapon
,
Integer
Count);
1247
Void
AddPlayerAmmo
(
CSmPlayer
Player,
EWeapon
Weapon
,
Real
DeltaCount);
1251
Void
SetPlayerAmmoMax
(
CSmPlayer
Player,
EWeapon
Weapon
,
Integer
Count);
1255
Void
AddPlayerArmor
(
CSmPlayer
Victim,
Integer
DeltaArmor,
CSmPlayer
Shooter,
Integer
ShooterPoints);
1259
Integer
GetWeaponNum
(
EWeapon
Weapon
);
1263
Boolean
CanRespawnPlayer
(
CSmPlayer
Player);
1267
Void
RespawnPlayer
(
CSmPlayer
Player);
1271
CSmPlayer
CreateBotPlayer
(
Ident
ModelId,
Integer
TeamNum);
1275
Void
DestroyBotPlayer
(
CSmPlayer
BotPlayer);
1279
Void
DestroyAllBotPlayers
();
1283
Void
ScriptedBot_Move
(
CSmPlayer
BotPlayer,
Vec3
Goal);
1287
Void
ScriptedBot_MoveDelta
(
CSmPlayer
BotPlayer,
Vec3
Delta);
1291
Void
ScriptedBot_MoveAndAim
(
CSmPlayer
BotPlayer,
Vec3
Goal);
1295
Void
ScriptedBot_MoveDeltaAndAim
(
CSmPlayer
BotPlayer,
Vec3
Delta);
1299
Void
ScriptedBot_Aim
(
CSmPlayer
BotPlayer,
Vec3
Goal);
1303
Void
ScriptedBot_AimDelta
(
CSmPlayer
BotPlayer,
Real
DeltaYaw,
Real
DeltaPitch);
1307
Void
ScriptedBot_RequestAction
(
CSmPlayer
BotPlayer);
1311
Void
ScriptedBot_RequestGunTrigger
(
CSmPlayer
BotPlayer);
1315
Void
ActionLoad
(
CSmPlayer
Player,
EActionSlot
ActionSlot,
Ident
ModelId);
1319
Void
ActionBind
(
CSmPlayer
Player,
EActionSlot
ActionSlot,
EActionInput
ActionInput);
1323
Void
ActionSetVariant
(
CSmPlayer
Player,
EActionSlot
ActionSlot,
Integer
ActionVariant);
1327
Void
SetNbFakePlayers
(
Integer
NbClan1,
Integer
NbClan2);
1331
const
CSmObject
[]
Objects
;
1335
CSmObject
ObjectCreate
(
Ident
ModelId);
1339
Void
ObjectDestroy
(
CSmObject
Object);
1343
Void
ObjectDestroyAll
();
1347
Void
Replay_SaveAttackScore
(
CSmPlayer
Player,
Integer
Score);
1351
Void
Replay_SaveDefenseScore
(
CSmPlayer
Player,
Integer
Score);
1355
Void
Replay_SaveTeamScore
(
Integer
Team,
Integer
Score);
1359
Void
Replay_SavePlayerOfInterest
(
CSmPlayer
Player);
1363
Void
Replay_SaveWinner
(
CSmPlayer
Player);
1367
Void
Replay_SaveInterface
();
1368
};
1369
1374
struct
CSmMlScriptIngame
:
public
CMlScriptIngame
{
1378
const
Integer
ArenaNow
;
1382
const
CSmPlayer
InputPlayer
;
1386
const
CSmPlayer
GUIPlayer
;
1390
const
CSmPlayer
[]
Players
;
1394
const
CSmScore
[]
Scores
;
1398
const
Integer
[]
ClanScores
;
1402
Boolean
HideResumePlayingButton
;
1406
const
CSmMapBase
[]
MapBases
;
1410
const
CSmMapLandmark
[]
MapLandmarks
;
1414
const
CSmMapLandmark
[]
MapLandmarks_PlayerSpawn
;
1418
const
CSmMapLandmark
[]
MapLandmarks_Gauge
;
1422
const
CSmMapLandmark
[]
MapLandmarks_BotPath
;
1426
const
CSmMapLandmark
[]
MapLandmarks_ObjectAnchor
;
1430
const
CSmMapLandmark
[]
MapLandmarks_Gate
;
1431
};
1432
1437
struct
CSmAction
:
public
CNod
{
1441
const
Integer
Now
;
1445
const
Integer
Variant
;
1449
const
CSmPlayer
[]
Players
;
1453
const
CSmPlayer
Owner
;
1457
const
Boolean
IsActive
;
1461
Integer
Energy
;
1465
Integer
EnergyMax
;
1469
Integer
EnergyCost
;
1473
const
CSmActionEvent
[]
PendingEvents
;
1477
Void
SendRulesEvent
(
Text
Param1,
Text
[] Param2,
CSmPlayer
Shooter,
CSmPlayer
Victim);
1481
Ident
GetAnimModelId
(
Text
ModelName);
1485
Void
PlayAnimOnPlayer
(
Ident
AnimModelId,
CSmPlayer
Player);
1489
Void
PlayAnimAtPosition
(
Ident
AnimModelId,
Vec3
Position,
Vec3
Direction);
1493
Ident
GetProjectileModelId
(
Text
ModelName);
1497
Void
CreateProjectile
(
CSmPlayer
PlayerToIgnore,
Ident
ProjectileModelId,
Vec3
InitialPosition,
Vec3
InitialDirection,
Vec3
InitialVelocity);
1501
Void
CreateProjectile
(
CSmPlayer
PlayerToIgnore,
Ident
ProjectileModelId,
Vec3
InitialPosition,
Vec3
InitialDirection,
Vec3
InitialVelocity,
Integer
ContextId);
1505
Void
CreateShoot
(
CSmPlayer
Shooter,
Ident
ProjectileModelId);
1509
Void
CreateShoot
(
CSmPlayer
Shooter,
Ident
ProjectileModelId,
Integer
ContextId);
1513
Integer
Cooldown
;
1517
Boolean
Cooldown_IsReady
(
Integer
Now
);
1521
Void
Cooldown_Start
();
1522
};
1523
1527
struct
CSmMapType
:
public
CMapType
{
1531
const
CSmMode
Mode
;
1532
};
1533
1538
struct
CTmMlScriptIngame
:
public
CMlScriptIngame
{
1542
const
CTmMlPlayer
InputPlayer
;
1546
const
CTmMlPlayer
GUIPlayer
;
1550
const
CTmMlPlayer
[]
Players
;
1554
const
CTmScore
[]
Scores
;
1558
const
Integer
[]
ClanScores
;
1559
};
1560
1565
struct
CTmMode
:
public
CMode
{
1566
enum
ETmScoreSortOrder
{
1567
TotalPoints
,
1568
BestRace_Time
,
1569
BestRace_Stunts
,
1570
BestRace_NbRespawns
,
1571
BestRace_CheckpointsProgress
,
1572
PrevRace_Time
,
1573
Name
,
1574
LadderRankSortValue
,
1575
};
1576
enum
ETMRespawnBehaviour
{
1577
Normal
,
1578
DoNothing
,
1579
GiveUpBeforeFirstCheckPoint
,
1580
AlwaysGiveUp
,
1581
};
1582
enum
ETmRaceChronoBehaviour
{
1583
Auto
,
1584
Hidden
,
1585
CountDown
,
1586
Normal
,
1587
};
1591
const
CTmPlayer
[]
AllPlayers
;
1595
const
CTmPlayer
[]
Spectators
;
1599
const
CTmPlayer
[]
Players
;
1603
const
CTmPlayer
[]
PlayersRacing
;
1607
const
CTmPlayer
[]
PlayersWaiting
;
1611
const
CTmScore
[]
Scores
;
1615
Integer
Clan1Score
;
1619
Integer
Clan2Score
;
1623
Integer
[]
ClanScores
;
1627
const
CTmModeEvent
[]
PendingEvents
;
1631
Void
PassOn
(
CTmModeEvent
Event);
1635
Void
Discard
(
CTmModeEvent
Event);
1639
Void
Scores_Sort
(
ETmScoreSortOrder
SortOrder);
1643
Void
Scores_Clear
();
1647
Void
Ladder_ComputeRank
(
ETmScoreSortOrder
SortOrder);
1651
Integer
CutOffTimeLimit
;
1655
Integer
NbLaps
;
1659
Boolean
IndependantLaps
;
1663
Boolean
UseClans
;
1667
ETMRespawnBehaviour
RespawnBehaviour
;
1671
Boolean
UiRounds
;
1675
Boolean
UiLaps
;
1679
Boolean
UiStuntsMode
;
1683
Boolean
UiDisplayStuntsNames
;
1687
Integer
UiScoresPointsLimit
;
1691
ETmRaceChronoBehaviour
UiRaceChrono
;
1695
Boolean
HideOpponents
;
1699
Integer
ForceMaxOpponents
;
1703
Boolean
EnableLegacyXmlRpcCallbacks
;
1704
};
1705
1709
struct
CTmMapType
:
public
CMapType
{
1713
const
CTmMode
Mode
;
1714
};
1715
1719
struct
CNod
{
1723
const
Ident
Id
;
1724
};
1725
1730
struct
CMlPage
:
public
CNod
{
1734
const
CMlFrame
MainFrame
;
1738
CMlControl
GetFirstChild
(
Text
ControlId);
1742
Boolean
LinksInhibited
;
1746
Void
GetClassChildren
(
Text
Class,
CMlFrame
Frame,
Boolean
Recursive);
1750
const
CMlControl
[]
GetClassChildren_Result
;
1751
};
1752
1757
struct
CUser
:
public
CNod
{
1758
enum
EEchelon
{
1759
None
,
1760
Bronze1
,
1761
Bronze2
,
1762
Bronze3
,
1763
Silver1
,
1764
Silver2
,
1765
Silver3
,
1766
Gold1
,
1767
Gold2
,
1768
Gold3
,
1769
};
1770
enum
ETagType
{
1771
Bronze
,
1772
Silver
,
1773
Gold
,
1774
Nadeo
,
1775
};
1779
const
Text
Login
;
1783
const
Text
Name
;
1787
const
Text
AvatarUrl
;
1791
const
Text
ZonePath
;
1795
const
Text
ZoneFlagUrl
;
1799
const
Text
CountryFlagUrl
;
1803
const
Text
Language
;
1807
const
Text
Description
;
1811
const
Vec3
Color
;
1815
const
Text
ClubLink
;
1819
const
Text
BroadcastTVLogin
;
1823
const
Text
SteamUserId
;
1827
const
Integer
FameStars
;
1831
const
EEchelon
Echelon
;
1835
const
Boolean
IsBeginner
;
1839
const
Integer
LadderRank
;
1843
const
Integer
LadderTotal
;
1847
const
Real
LadderPoints
;
1851
const
Text
LadderZoneName
;
1855
const
Text
LadderZoneFlagUrl
;
1859
const
Integer
RequestedClan
;
1863
const
Boolean
RequestsSpectate
;
1867
const
Boolean
IsFakeUser
;
1871
const
Integer
[]
Tags_Favored_Indices
;
1875
const
Text
[]
Tags_Id
;
1879
const
ETagType
[]
Tags_Type
;
1883
const
Text
[]
Tags_Comments
;
1887
const
Text
[]
Tags_Deliverer
;
1891
const
Text
[]
AlliesConnected
;
1892
enum
PlayerType
{
1893
Human
,
1894
Fake
(not net),
1895
Net
,
1896
Replay
,
1897
};
1898
enum
SpectatorMode
{
1899
Void
,
1900
Watcher
,
1901
LocalWatcher
,
1902
Target
,
1903
};
1904
};
1905
1910
struct
CTitle
:
public
CNod
{
1914
const
Text
TitleId
;
1918
const
Text
BaseTitleId
;
1922
const
Text
Name
;
1926
const
Text
Desc
;
1930
const
Text
InfoUrl
;
1934
const
Text
DownloadUrl
;
1938
const
Text
TitleVersion
;
1939
};
1940
1944
struct
CMlEvent
:
public
CNod
{
1945
enum
Type
{
1946
KeyPress
,
1947
MouseClick
,
1948
MouseOver
,
1949
MouseOut
,
1950
EntrySubmit
,
1951
MenuNavigation
,
1952
PluginCustomEvent
,
1953
};
1954
enum
EMenuNavAction
{
1955
Up
,
1956
Right
,
1957
Left
,
1958
Down
,
1959
Select
,
1960
Cancel
,
1961
};
1965
const
Type
Type
;
1969
const
Integer
KeyCode
;
1973
const
Text
KeyName
;
1977
const
Text
CharPressed
;
1981
const
Text
ControlId
;
1985
const
CMlControl
Control
;
1989
const
EMenuNavAction
MenuNavAction
;
1993
const
Text
PluginCustomEventType
;
1997
const
Text
[]
PluginCustomEventData
;
1998
};
1999
2003
struct
CXmlManager
:
public
CNod
{
2007
CXmlDocument
Create
(
Text
Contents);
2011
Void
Destroy
(
CXmlDocument
Document);
2015
const
CXmlDocument
[]
Documents
;
2016
};
2017
2021
struct
CHttpManager
:
public
CNod
{
2025
CHttpRequest
CreateGet
(
Text
Url);
2029
CHttpRequest
CreateGet
(
Text
Url,
Boolean
UseCache);
2033
CHttpRequest
CreatePost
(
Text
Url,
Text
Resource);
2037
Void
Destroy
(
CHttpRequest
Request);
2041
Boolean
IsValidUrl
(
Text
Url);
2045
const
CHttpRequest
[]
Requests
;
2049
const
Integer
SlotsAvailable
;
2050
};
2051
2055
struct
CAudioManager
:
public
CNod
{
2056
enum
ELibSound
{
2057
Alert
,
2058
ShowDialog
,
2059
HideDialog
,
2060
ShowMenu
,
2061
HideMenu
,
2062
Focus
,
2063
Valid
,
2064
Start
,
2065
Countdown
,
2066
Victory
,
2067
ScoreIncrease
,
2068
};
2072
CAudioSound
CreateSound
(
Text
Url);
2076
CAudioSound
CreateSound
(
Text
Url,
Real
VolumedB,
Boolean
IsMusic,
Boolean
IsLooping,
Boolean
IsSpatialized);
2080
Void
DestroySound
(
CAudioSound
Sound);
2084
const
CAudioSound
[]
Sounds
;
2088
Void
PlaySoundEvent
(
CAudioSound
Sound,
Real
VolumedB);
2092
Void
PlaySoundEvent
(
Text
Url,
Real
VolumedB);
2096
Void
PlaySoundEvent
(
ELibSound
Sound,
Integer
SoundVariant,
Real
VolumedB);
2100
Boolean
ForceEnableMusic
;
2104
Real
LimitMusicVolumedB
;
2105
};
2106
2111
struct
CMlControl
:
public
CNod
{
2112
enum
AlignHorizontal
{
2113
Left
,
2114
HCenter
,
2115
Right
,
2116
None
,
2117
};
2118
enum
AlignVertical
{
2119
Top
,
2120
VCenter
,
2121
Bottom
,
2122
None
,
2123
VCenter2
,
2124
};
2128
const
Text
ControlId
;
2132
const
Text
[]
ControlClasses
;
2136
Boolean
HasClass
(
Text
Class);
2140
Vec2
Size
;
2144
AlignHorizontal
HorizontalAlign
;
2148
AlignVertical
VerticalAlign
;
2152
Boolean
Visible
;
2156
Vec3
RelativePosition
;
2160
Real
RelativeScale
;
2164
Real
RelativeRotation
;
2168
const
Vec3
AbsolutePosition
;
2172
const
Real
AbsoluteScale
;
2176
const
Real
AbsoluteRotation
;
2180
Void
Show
();
2184
Void
Hide
();
2188
Void
Unload
();
2192
Void
Focus
();
2193
};
2194
2198
struct
CMlGraphCurve
:
public
CNod
{
2202
Vec2
[]
Points
;
2206
Vec3
Color
;
2210
Void
SortPoints
();
2214
Text
Style
;
2218
Real
Width
;
2219
};
2220
2225
struct
CMap
:
public
CNod
{
2229
const
CMapInfo
MapInfo
;
2233
Text
MapName
;
2237
Text
Comments
;
2241
const
Text
AuthorZoneIconUrl
;
2245
const
Text
CollectionName
;
2249
const
Text
DecorationName
;
2253
const
Text
AuthorLogin
;
2257
const
Text
AuthorNickName
;
2261
const
Text
AuthorZonePath
;
2265
const
Text
MapType
;
2269
const
Text
MapStyle
;
2273
Integer
TMObjective_AuthorTime
;
2277
Integer
TMObjective_GoldTime
;
2281
Integer
TMObjective_SilverTime
;
2285
Integer
TMObjective_BronzeTime
;
2289
Integer
TMObjective_NbLaps
;
2293
Boolean
TMObjective_IsLapRace
;
2297
Text
ObjectiveTextAuthor
;
2301
Text
ObjectiveTextGold
;
2305
Text
ObjectiveTextSilver
;
2309
Text
ObjectiveTextBronze
;
2313
const
Integer
CopperPrice
;
2317
const
Int3
Size
;
2318
};
2319
2323
struct
CUILayer
:
public
CNod
{
2324
enum
EUILayerType
{
2325
Normal
,
2326
ScoresTable
,
2327
ScreenIn3d
,
2328
AltMenu
,
2329
Markers
,
2330
CutScene
,
2331
EditorPlugin
,
2332
ManiaplanetPlugin
,
2333
ManiaplanetMenu
,
2334
LoadingScreen
,
2335
};
2339
Boolean
IsVisible
;
2343
EUILayerType
Type
;
2347
Text
AttachId
;
2351
Text
ManialinkPage
;
2355
const
CMlPage
LocalPage
;
2356
};
2357
2361
struct
CBlockModel
:
public
CCollector
{
2362
enum
EBaseType
{
2363
None
,
2364
Conductor
,
2365
Generator
,
2366
Collector
,
2367
};
2368
enum
EWayPointType
{
2369
Start
,
2370
Finish
,
2371
Checkpoint
,
2372
None
,
2373
StartFinish
,
2374
};
2375
enum
EProdState
{
2376
Obsolete
,
2377
GameBox
,
2378
DevBuild
,
2379
Release
,
2380
};
2384
const
Text
Name
;
2388
const
Boolean
IsRoad
;
2392
const
Boolean
IsTerrain
;
2396
const
EWayPointType
WaypointType
;
2400
const
Boolean
NoRespawn
;
2404
const
CBlockModelVariantGround
VariantGround
;
2408
const
CBlockModelVariantAir
VariantAir
;
2409
};
2410
2415
struct
CMacroblockModel
:
public
CCollector
{
2419
const
Boolean
IsGround
;
2423
const
Boolean
HasStart
;
2427
const
Boolean
HasFinish
;
2431
const
Boolean
HasCheckpoint
;
2435
const
CBlockModel
GeneratedBlockModel
;
2439
const
Text
Name
;
2440
};
2441
2445
struct
CItemAnchor
:
public
CNod
{
2446
enum
CardinalDirections
{
2447
North
,
2448
East
,
2449
South
,
2450
West
,
2451
};
2455
const
Vec3
Position
;
2456
};
2457
2461
struct
CBlock
:
public
CNod
{
2462
enum
CardinalDirections
{
2463
North
,
2464
East
,
2465
South
,
2466
West
,
2467
};
2471
const
Integer
BlockScriptId
;
2475
const
Boolean
CanHaveAnchor
;
2479
Void
UseDefaultAnchor
();
2483
Void
UseCustomAnchor
();
2487
const
Int3
Coord
;
2491
const
CardinalDirections
Direction
;
2495
const
CBlockUnit
[]
BlockUnits
;
2499
const
CBlockModel
BlockModel
;
2500
};
2501
2506
struct
CAnchorData
:
public
CNod
{
2510
const
Text
DefaultTag
;
2514
const
Integer
DefaultOrder
;
2518
Text
Tag
;
2522
Integer
Order
;
2523
};
2524
2528
struct
CEditorPluginEvent
:
public
CNod
{
2529
enum
Type
{
2530
CursorSelectionBegin
,
2531
CursorSelectionEnd
,
2532
CursorChange
,
2533
MapModified
,
2534
EditAnchor
,
2535
EditObjectives
,
2536
StartValidation
,
2537
};
2541
const
Type
Type
;
2545
const
Ident
EditedAnchorDataId
;
2546
};
2547
2552
struct
CMode
:
public
CNod
{
2553
enum
EMedal
{
2554
None
,
2555
Finished
,
2556
Bronze
,
2557
Silver
,
2558
Gold
,
2559
Author
,
2560
};
2564
Text
ModeStatusMessage
;
2568
const
CTitle
LoadedTitle
;
2572
const
Text
ServerLogin
;
2576
const
Text
ServerName
;
2580
const
Text
ServerModeName
;
2584
const
Text
MapName
;
2588
const
CMap
Map
;
2592
const
CUser
[]
Users
;
2596
const
CTeam
[]
Teams
;
2600
Text
NeutralEmblemUrl
;
2604
const
Text
ForcedClubLinkUrl1
;
2608
const
Text
ForcedClubLinkUrl2
;
2612
Void
TweakTeamColorsToAvoidHueOverlap
();
2616
const
Integer
Now
;
2620
const
Integer
Period
;
2624
Boolean
MatchEndRequested
;
2628
const
Boolean
ServerShutdownRequested
;
2632
const
Boolean
MapLoaded
;
2636
Void
RequestLoadMap
();
2640
Void
RequestUnloadMap
();
2644
const
CMapInfo
[]
MapList
;
2648
Integer
NextMapIndex
;
2652
const
CUIConfigMgr
UIManager
;
2656
Void
Ladder_OpenMatch_Request
();
2660
Void
Ladder_AddPlayer
(
CScore
PlayerScore);
2664
Void
Ladder_OpenMatch_BeginRequest
();
2668
Void
Ladder_OpenMatch_AddPlayer
(
CScore
PlayerScore);
2672
Void
Ladder_OpenMatch_EndRequest
();
2676
Void
Ladder_CloseMatchRequest
();
2680
Void
Ladder_CancelMatchRequest
();
2684
const
Boolean
Ladder_RequestInProgress
;
2688
Void
Ladder_SetResultsVersion
(
Integer
Version);
2692
Void
Ladder_EnableChallengeMode
(
Boolean
Enable);
2696
Void
Admin_KickUser
(
CUser
User,
Text
Reason);
2700
Void
Admin_SetLobbyInfo
(
Boolean
IsLobby,
Integer
LobbyPlayerCount,
Integer
LobbyMaxPlayerCount,
Real
LobbyPlayersLevel);
2704
Void
AutoTeamBalance
();
2708
Void
Solo_SetNewRecord
(
CScore
PlayerScore,
EMedal
PlayerScore);
2712
const
Boolean
Solo_NewRecordSequenceInProgress
;
2716
const
CXmlRpc
XmlRpc
;
2720
const
CXmlManager
Xml
;
2724
const
CHttpManager
Http
;
2728
Integer
Synchro_AddBarrier
();
2732
Boolean
Synchro_BarrierReached
(
Integer
Barrier);
2736
Boolean
Users_AreAllies
(
CUser
User1,
CUser
User2);
2740
Void
Users_RequestSwitchToSpectator
(
CUser
User);
2744
CUser
Users_CreateFake
(
Text
NickName,
Integer
RequestedTeam);
2748
Void
Users_DestroyFake
(
CUser
User);
2752
Void
Users_SetNbFakeUsers
(
Integer
NbTeam1,
Integer
NbTeam2);
2756
Void
Users_DestroyAllFakes
();
2760
Void
ItemList_Begin
();
2764
Ident
ItemList_Add
(
Text
ItemName);
2768
Ident
ItemList_AddWithSkin
(
Text
ModelName,
Text
SkinName);
2772
Void
ItemList_End
();
2776
Void
DemoToken_StartUsingToken
();
2780
Void
DemoToken_StopUsingToken
();
2784
Void
DemoToken_GetAndUseToken
(
CUser
User);
2788
Void
ActionList_Begin
();
2792
Ident
ActionList_Add
(
Text
ActionName);
2796
Void
ActionList_End
();
2800
Boolean
UseMinimap
;
2804
Boolean
Replay_AutoStart
;
2808
Void
Replay_Start
();
2812
Void
Replay_Stop
();
2813
};
2814
2819
struct
CSmPlayer
:
public
CPlayer
{
2820
enum
ESpawnStatus
{
2821
NotSpawned
,
2822
Spawning
,
2823
Spawned
,
2824
};
2828
const
CSmScore
Score
;
2832
const
ESpawnStatus
SpawnStatus
;
2836
const
Integer
StartTime
;
2840
Integer
EndTime
;
2844
Real
AmmoGain
;
2848
Real
AmmoPower
;
2852
const
Boolean
AutoSwitchWeapon
;
2856
const
Integer
CurWeapon
;
2860
const
Integer
CurAmmo
;
2864
const
Integer
CurAmmoMax
;
2868
const
Integer
CurAmmoUnit
;
2872
Integer
Armor
;
2876
Integer
ArmorMax
;
2880
Integer
ArmorGain
;
2884
Integer
ArmorReplenishGain
;
2888
Real
ArmorPower
;
2892
const
Integer
Stamina
;
2896
Real
StaminaMax
;
2900
Real
StaminaGain
;
2904
Real
StaminaPower
;
2908
Real
SpeedPower
;
2912
Real
JumpPower
;
2916
Boolean
AllowWallJump
;
2920
Boolean
AllowProgressiveJump
;
2924
Boolean
UseAlternateWeaponVisual
;
2928
Boolean
IsHighlighted
;
2932
Real
EnergyLevel
;
2936
Vec3
ForceColor
;
2940
Ident
ForceModelId
;
2944
Boolean
HasShield
;
2948
Real
ThrowSpeed
;
2952
const
Integer
CurrentClan
;
2956
const
Integer
IdleDuration
;
2960
const
Vec3
Position
;
2964
const
Real
AimYaw
;
2968
const
Real
AimPitch
;
2972
const
Vec3
AimDirection
;
2976
const
Boolean
IsUnderground
;
2980
const
Boolean
IsTouchingGround
;
2984
const
Boolean
IsInAir
;
2988
const
Boolean
IsOnTechGround
;
2992
const
Boolean
IsOnTechLaser
;
2996
const
Boolean
IsOnTechArrow
;
3000
const
Boolean
IsOnTechArmor
;
3004
const
Boolean
IsOnTechSafeZone
;
3008
const
Boolean
IsOnTech
;
3012
const
Boolean
IsInWater
;
3016
const
Vec3
Velocity
;
3020
const
Real
Speed
;
3024
const
Boolean
IsInOffZone
;
3028
const
Boolean
IsCapturing
;
3032
const
CSmMapLandmark
CapturedLandmark
;
3036
const
CSmObject
[]
Objects
;
3040
const
Boolean
IsFakePlayer
;
3044
const
Boolean
IsBot
;
3048
const
CSmPlayerDriver
Driver
;
3049
};
3050
3054
struct
CSmModeEvent
:
public
CNod
{
3055
enum
EType
{
3056
Unknown
,
3057
OnShoot
,
3058
OnHit
,
3059
OnNearMiss
,
3060
OnArmorEmpty
,
3061
OnCapture
,
3062
OnCommand
,
3063
OnPlayerAdded
,
3064
OnPlayerRemoved
,
3065
OnPlayerRequestRespawn
,
3066
OnActionCustomEvent
,
3067
OnActionEvent
,
3068
OnPlayerTouchesObject
,
3069
OnPlayerThrowsObject
,
3070
OnPlayerRequestActionChange
,
3071
};
3072
enum
EActionSlot
{
3073
Slot_A
,
3074
Slot_B
,
3075
Slot_C
,
3076
Slot_D
,
3077
Slot_E
,
3078
Slot_F
,
3079
Slot_G
,
3080
Slot_H
,
3081
};
3082
enum
EActionInput
{
3083
Weapon
,
3084
Movement
,
3085
Activable1
,
3086
Activable2
,
3087
Activable3
,
3088
Activable4
,
3089
None
,
3090
};
3091
enum
EActionSlots
{
3092
Weapon
,
3093
Movement
,
3094
Activable1
,
3095
Activable2
,
3096
Activable3
,
3097
Activable4
,
3098
None
,
3099
};
3103
const
EType
Type
;
3107
const
CSmPlayer
Player
;
3111
Integer
Damage
;
3115
const
CSmObject
VictimObject
;
3119
Integer
ShooterPoints
;
3123
const
CSmPlayer
Shooter
;
3127
const
CSmPlayer
Victim
;
3131
const
Real
MissDist
;
3135
const
Integer
WeaponNum
;
3139
const
EActionSlot
Action_Slot
;
3143
const
EActionInput
ActionInput
;
3147
const
Text
ActionId
;
3151
const
Text
Param1
;
3155
const
Text
[]
Param2
;
3159
const
CSmObject
Object
;
3163
const
CSmBlockPole
BlockPole
;
3167
const
CSmMapLandmark
Landmark
;
3171
const
Ident
PlayerId
;
3175
const
CUser
User
;
3179
const
Boolean
PlayerWasSpawned
;
3183
const
Vec3
PlayerLastPosition
;
3187
const
Vec3
PlayerLastAimDirection
;
3191
const
Boolean
GiveUp
;
3195
const
Text
CommandName
;
3199
const
Boolean
CommandValueBoolean
;
3203
const
Integer
CommandValueInteger
;
3207
const
Real
CommandValueReal
;
3211
const
Text
CommandValueText
;
3215
const
Integer
ActionChange
;
3216
};
3217
3221
struct
CSmMapBase
:
public
CNod
{
3225
Integer
Clan
;
3229
Boolean
IsActive
;
3233
const
Integer
NumberOfCollectors
;
3234
};
3235
3240
struct
CSmMapLandmark
:
public
CNod
{
3244
const
Text
Tag
;
3248
const
Integer
Order
;
3252
const
Vec3
Position
;
3256
const
CSmMapBase
Base
;
3260
const
CSmMapGate
Gate
;
3264
const
CSmMapGauge
Gauge
;
3268
const
CSmMapSector
Sector
;
3272
const
CSmMapPlayerSpawn
PlayerSpawn
;
3276
const
CSmMapBotPath
BotPath
;
3280
const
CSmMapObjectAnchor
ObjectAnchor
;
3281
};
3282
3287
struct
CSmScore
:
public
CScore
{
3291
const
Integer
TeamNum
;
3295
Integer
Points
;
3299
Integer
RoundPoints
;
3303
const
Integer
NbEliminationsInflicted
;
3307
const
Integer
NbEliminationsTaken
;
3311
const
Integer
NbRespawnsRequested
;
3315
const
Integer
DamageInflicted
;
3319
const
Integer
DamageTaken
;
3323
Void
Clear
();
3324
};
3325
3330
struct
CSmObject
:
public
CNod
{
3331
enum
EStatus
{
3332
OnPlayer
,
3333
OnAnchor
,
3334
InWorld
,
3335
Unspawned
,
3336
};
3340
const
EStatus
Status
;
3344
Void
SetAnchor
(
CSmMapObjectAnchor
ObjectAnchor);
3348
Void
SetPlayer
(
CSmPlayer
Player
);
3352
Void
SetPosition
(
Vec3
Position
);
3356
Void
SetPositionAndVel
(
Vec3
Position
,
Vec3
Vel
);
3360
Void
SetUnspawned
();
3364
const
CSmPlayer
Player
;
3368
const
Vec3
Position
;
3372
const
Vec3
Vel
;
3376
Integer
MachineState
;
3380
Boolean
Throwable
;
3381
};
3382
3387
struct
CMlScriptIngame
:
public
CMlScript
{
3388
enum
EUISound
{
3389
Default
,
3390
Silence
,
3391
StartMatch
,
3392
EndMatch
,
3393
StartRound
,
3394
EndRound
,
3395
PhaseChange
,
3396
TieBreakPoint
,
3397
TiePoint
,
3398
VictoryPoint
,
3399
Capture
,
3400
TimeOut
,
3401
Notice
,
3402
Warning
,
3403
PlayerEliminated
,
3404
PlayerHit
,
3405
Checkpoint
,
3406
Finish
,
3407
Record
,
3408
ScoreProgress
,
3409
RankChange
,
3410
Bonus
,
3411
FirstHit
,
3412
Combo
,
3413
PlayersRemaining
,
3414
Custom1
,
3415
Custom2
,
3416
Custom3
,
3417
Custom4
,
3418
};
3422
const
Integer
GameTime
;
3426
CUIConfig
UI
;
3430
CUIConfig
ClientUI
;
3434
Boolean
IsSpectatorMode
;
3438
const
Boolean
UseClans
;
3442
const
Boolean
UseForcedClans
;
3446
const
CMap
Map
;
3450
Void
ShowCurChallengeCard
();
3454
Void
ShowModeHelp
();
3458
Void
CopyServerLinkToClipBoard
();
3462
Void
JoinTeam1
();
3466
Void
JoinTeam2
();
3470
const
CTeam
[]
Teams
;
3474
Void
SetSpectateTarget
(
Text
Player);
3478
Void
ShowProfile
(
Text
Player);
3482
const
Text
CurrentServerLogin
;
3486
const
Text
CurrentServerName
;
3490
const
Text
CurrentServerJoinLink
;
3494
const
Text
CurrentServerModeName
;
3498
Void
PlayUiSound
(
EUISound
Sound,
Integer
SoundVariant,
Real
Volume);
3499
};
3500
3504
struct
CSmActionEvent
:
public
CNod
{
3505
enum
EType
{
3506
OnHitPlayer
,
3507
OnProjectileStart
,
3508
OnProjectileEnd
,
3509
OnActiveChange
,
3510
};
3514
const
EType
Type
;
3518
const
CSmPlayer
Player
;
3522
const
Integer
Damage
;
3526
const
Ident
ProjectileModelId
;
3530
const
Integer
ContextId
;
3534
const
Vec3
Position
;
3538
const
Vec3
Direction
;
3542
const
Vec3
Normal
;
3543
};
3544
3548
struct
CMapType
:
public
CEditorPlugin
{
3549
enum
ValidationStatus
{
3550
NotValidable
,
3551
Validable
,
3552
Validated
,
3553
};
3557
Boolean
CustomEditAnchorData
;
3561
Void
ClearMapMetadata
();
3565
ValidationStatus
ValidationStatus
;
3569
Text
ValidabilityRequirementsMessage
;
3573
const
Boolean
ValidationEndRequested
;
3577
Void
StartTestMapWithMode
(
Text
RulesModeName);
3581
Void
RequestEnterPlayground
();
3585
Void
RequestLeavePlayground
();
3589
const
Boolean
IsSwitchedToPlayground
;
3590
};
3591
3596
struct
CTmMlPlayer
:
public
CPlayer
{
3597
enum
ERaceState
{
3598
BeforeStart
,
3599
Running
,
3600
Finished
,
3601
Eliminated
,
3602
};
3606
const
ERaceState
RaceState
;
3610
const
Boolean
IsSpawned
;
3614
CTrackManiaScore
Score
;
3618
const
Integer
RaceStartTime
;
3622
const
Integer
LapStartTime
;
3626
CTmResult
CurRace
;
3630
CTmResult
CurLap
;
3634
const
Integer
CurrentNbLaps
;
3638
const
Integer
CurTriggerIndex
;
3642
const
Integer
CurCheckpointRaceTime
;
3646
const
Integer
CurCheckpointLapTime
;
3650
const
Vec3
Position
;
3654
const
Real
AimYaw
;
3658
const
Real
AimPitch
;
3662
const
Vec3
AimDirection
;
3663
};
3664
3669
struct
CTmScore
:
public
CScore
{
3673
const
Integer
TeamNum
;
3677
Integer
Points
;
3681
CTmResult
BestRace
;
3685
CTmResult
BestLap
;
3689
Integer
PrevRaceDeltaPoints
;
3693
CTmResult
PrevRace
;
3697
CTmResult
TempResult
;
3701
Void
Clear
();
3702
};
3703
3708
struct
CTmPlayer
:
public
CPlayer
{
3712
const
Integer
CurrentClan
;
3716
const
CTmScore
Score
;
3720
Integer
RaceStartTime
;
3724
Boolean
IsSpawned
;
3728
CTmResult
CurRace
;
3732
CTmResult
CurLap
;
3736
Integer
CurrentNbLaps
;
3740
const
Integer
CurTriggerIndex
;
3744
const
Vec3
Position
;
3748
const
Real
AimYaw
;
3752
const
Real
AimPitch
;
3756
const
Vec3
AimDirection
;
3760
Real
AccelCoef
;
3764
Real
ControlCoef
;
3765
};
3766
3770
struct
CTmModeEvent
:
public
CNod
{
3771
enum
EType
{
3772
Unknown
,
3773
StartLine
,
3774
WayPoint
,
3775
GiveUp
,
3776
Respawn
,
3777
Stunt
,
3778
};
3779
enum
EStuntFigure
{
3780
None
,
3781
StraightJump
,
3782
Flip
,
3783
BackFlip
,
3784
Spin
,
3785
Aerial
,
3786
AlleyOop
,
3787
Roll
,
3788
Corkscrew
,
3789
SpinOff
,
3790
Rodeo
,
3791
FlipFlap
,
3792
Twister
,
3793
FreeStyle
,
3794
SpinningMix
,
3795
FlippingChaos
,
3796
RollingMadness
,
3797
WreckNone
,
3798
WreckStraightJump
,
3799
WreckFlip
,
3800
WreckBackFlip
,
3801
WreckSpin
,
3802
WreckAerial
,
3803
WreckAlleyOop
,
3804
WreckRoll
,
3805
WreckCorkscrew
,
3806
WreckSpinOff
,
3807
WreckRodeo
,
3808
WreckFlipFlap
,
3809
WreckTwister
,
3810
WreckFreeStyle
,
3811
WreckSpinningMix
,
3812
WreckFlippingChaos
,
3813
WreckRollingMadness
,
3814
TimePenalty
,
3815
RespawnPenalty
,
3816
Grind
,
3817
Reset
,
3818
};
3822
const
EType
Type
;
3826
const
CTmPlayer
Player
;
3830
Integer
RaceTime
;
3834
const
Integer
CheckpointInRace
;
3838
const
Integer
CheckpointInLap
;
3842
const
Boolean
IsEndLap
;
3846
const
Boolean
IsEndRace
;
3850
Integer
LapTime
;
3854
Integer
StuntsScore
;
3858
Integer
NbRespawns
;
3862
const
Ident
BlockId
;
3866
Real
Speed
;
3870
Real
Distance
;
3874
Real
Damages
;
3878
const
EStuntFigure
StuntFigure
;
3882
const
Integer
Angle
;
3886
const
Integer
Points
;
3890
const
Integer
Combo
;
3894
const
Boolean
IsStraight
;
3898
const
Boolean
IsReverse
;
3902
const
Boolean
IsMasterJump
;
3906
const
Real
Factor
;
3907
};
3908
3913
struct
CMlFrame
:
public
CMlControl
{
3914
enum
EControlType
{
3915
Audio
,
3916
Entry
,
3917
FileEntry
,
3918
Frame
,
3919
Label
,
3920
Quad
,
3921
Video
,
3922
};
3926
const
CMlControl
[]
Controls
;
3930
CMlControl
GetFirstChild
(
Text
ControlId
);
3931
};
3932
3936
struct
CXmlDocument
:
public
CNod
{
3940
const
Text
TextContents
;
3944
const
CXmlNode
Root
;
3948
const
CXmlNode
[]
Nodes
;
3952
CXmlNode
GetFirstChild
(
Text
Name);
3953
};
3954
3958
struct
CHttpRequest
:
public
CNod
{
3962
const
Text
Url
;
3966
const
Text
Result
;
3970
const
Integer
StatusCode
;
3974
const
Boolean
IsCompleted
;
3975
};
3976
3980
struct
CAudioSound
:
public
CNod
{
3984
Void
Play
();
3988
Void
Stop
();
3992
const
Boolean
IsPlaying
;
3996
const
Boolean
DownloadInProgress
;
4000
Real
Volume
;
4004
Real
VolumedB
;
4008
Real
Pitch
;
4012
Vec3
RelativePosition
;
4016
Real
PlayCursor
;
4017
};
4018
4022
struct
CMapInfo
:
public
CNod
{
4026
const
Text
Comments
;
4030
const
Integer
CopperPrice
;
4034
const
Text
CollectionName
;
4038
const
Text
AuthorLogin
;
4042
const
Text
AuthorNickName
;
4046
const
Text
AuthorZonePath
;
4050
const
Text
MapType
;
4054
const
Text
MapStyle
;
4058
const
Boolean
Unlocked
;
4062
const
Text
Name
;
4066
const
Text
Path
;
4067
};
4068
4072
struct
CCollector
:
public
CNod
{
4076
const
Text
Name
;
4080
Text
PageName
;
4081
};
4082
4086
struct
CBlockModelVariantGround
:
public
CBlockModelVariant
{
4087
enum
EnumAutoTerrainPlaceType
{
4088
Auto
,
4089
Force
,
4090
DoNotPlace
,
4091
DoNotDestroy
,
4092
};
4093
};
4094
4098
struct
CBlockModelVariantAir
:
public
CBlockModelVariant
{
4099
};
4100
4104
struct
CBlockUnit
:
public
CNod
{
4108
const
Int3
Offset
;
4112
const
CBlockUnitModel
BlockUnitModel
;
4116
const
CBlock
Block
;
4117
};
4118
4123
struct
CTeam
:
public
CNod
{
4127
Text
Name
;
4131
Text
ZonePath
;
4135
Text
City
;
4139
Text
EmblemUrl
;
4143
Text
PresentationManialinkUrl
;
4147
Text
ClubLinkUrl
;
4151
Vec3
ColorPrimary
;
4155
Vec3
ColorSecondary
;
4159
const
Text
ColorText
;
4163
const
Text
ColorizedName
;
4164
};
4165
4169
struct
CUIConfigMgr
:
public
CNod
{
4173
Void
ResetAll
();
4177
const
CUIConfig
UIAll
;
4181
const
CUIConfig
[]
UI
;
4185
CUIConfig
GetUI
(
CPlayer
Player);
4189
CUIConfig
GetUI
(
CUser
User);
4193
const
CUILayer
[]
UILayers
;
4197
CUILayer
UILayerCreate
();
4201
Void
UILayerDestroy
(
CUILayer
Layer);
4205
Void
UILayerDestroyAll
();
4209
const
CUILayer
[]
UIReplayLayers
;
4210
};
4211
4216
struct
CXmlRpc
:
public
CNod
{
4220
const
CXmlRpcEvent
[]
PendingEvents
;
4224
Void
SendCallback
(
Text
Param1,
Text
Param2);
4228
Void
SendCallbackArray
(
Text
Type,
Text
[] Data);
4232
Void
SendCallback_BeginRound
();
4236
Void
SendCallback_EndRound
();
4237
};
4238
4243
struct
CPlayer
:
public
CNod
{
4247
const
CUser
User
;
4251
const
Text
Login
;
4255
const
Text
Name
;
4259
const
Integer
RequestedClan
;
4263
const
Boolean
RequestsSpectate
;
4264
};
4265
4269
struct
CSmPlayerDriver
:
public
CNod
{
4270
enum
ESmDriverBehaviour
{
4271
Static
,
4272
Turret
,
4273
Scripted
,
4274
IA
,
4275
Patrol
,
4276
Escape
,
4277
Saunter
,
4278
};
4279
enum
ESmDriverPatrolMode
{
4280
OneTrip
,
4281
BackAndForth
,
4282
Loop
,
4283
};
4284
enum
ESmAttackFilter
{
4285
All
,
4286
AllPlayers
,
4287
AllBots
,
4288
AllOpposite
,
4289
OppositePlayers
,
4290
OppositeBots
,
4291
Nobody
,
4292
};
4296
ESmDriverBehaviour
Behaviour
;
4300
Real
AggroRadius
;
4304
Real
DisengageDistance
;
4308
Real
PathSpeedCoef
;
4312
Real
Accuracy
;
4316
Integer
ReactionTime
;
4320
Integer
ShootPeriodMin
;
4324
Integer
ShootPeriodMax
;
4328
Boolean
RocketAnticipation
;
4332
Real
Fov
;
4336
ESmAttackFilter
AttackFilter
;
4340
const
CSmPlayer
Target
;
4344
const
Boolean
IsStuck
;
4348
Boolean
IsFlying
;
4352
Integer
PathOffset
;
4356
Real
Agressivity
;
4360
Boolean
UseOldShootingSystem
;
4364
ESmDriverPatrolMode
Patrol_Mode
;
4368
Vec3
Escape_AnchorPoint
;
4372
Real
Escape_DistanceSafe
;
4376
Real
Escape_DistanceMinEscape
;
4380
Real
Escape_DistanceMaxEscape
;
4384
Vec3
Saunter_AnchorPoint
;
4388
Integer
Saunter_BaseChillingTime
;
4392
Integer
Saunter_ChillingTimeDelta
;
4396
Real
Saunter_Radius
;
4400
Boolean
Scripted_ForceAimInMoveDir
;
4404
CSmPlayer
ForcedTarget
;
4408
CSmPlayer
[]
TargetsToAvoid
;
4409
};
4410
4415
struct
CSmBlockPole
:
public
CSmBlock
{
4419
Boolean
Captured
;
4423
const
CSmSector
Sector
;
4427
const
CSmGauge
Gauge
;
4428
};
4429
4433
struct
CSmMapGate
:
public
CNod
{
4437
Integer
Clan
;
4441
Boolean
Automatic
;
4445
Boolean
ManualClosed
;
4449
const
Boolean
AutoClosed
;
4453
Boolean
AutoIsActive
;
4457
Integer
AutoCloseDelay
;
4461
Integer
AutoOpenSpeed
;
4462
};
4463
4467
struct
CSmMapGauge
:
public
CNod
{
4471
Integer
Clan
;
4475
Real
ValueReal
;
4479
Integer
Value
;
4483
Integer
Max
;
4487
Integer
Speed
;
4491
Boolean
Captured
;
4492
};
4493
4497
struct
CSmMapSector
:
public
CNod
{
4501
const
Ident
[]
PlayersIds
;
4502
};
4503
4507
struct
CSmMapPlayerSpawn
:
public
CNod
{
4508
};
4509
4513
struct
CSmMapBotPath
:
public
CNod
{
4517
const
Integer
Clan
;
4521
const
Vec3
[]
Path
;
4525
const
Boolean
IsFlying
;
4526
};
4527
4531
struct
CSmMapObjectAnchor
:
public
CNod
{
4535
const
Text
ItemName
;
4539
const
Ident
ItemModelId
;
4540
};
4541
4546
struct
CScore
:
public
CNod
{
4550
const
CUser
User
;
4554
const
Boolean
IsRegisteredForLadderMatch
;
4558
const
Real
LadderScore
;
4562
Integer
LadderRankSortValue
;
4566
Real
LadderMatchScoreValue
;
4570
Integer
LadderClan
;
4571
};
4572
4577
struct
CUIConfig
:
public
CNod
{
4578
enum
EUISequence
{
4579
None
,
4580
Playing
,
4581
Intro
,
4582
Outro
,
4583
Podium
,
4584
CustomMTClip
,
4585
EndRound
,
4586
PlayersPresentation
,
4587
UIInteraction
,
4588
RollingBackgroundIntro
,
4589
CustomMTClip_WithUIInteraction
,
4590
};
4591
enum
EUIStatus
{
4592
None
,
4593
Normal
,
4594
Warning
,
4595
Error
,
4596
Official
,
4597
};
4598
enum
EVisibility
{
4599
None
,
4600
Normal
,
4601
Manual
,
4602
ForcedHidden
,
4603
ForcedVisible
,
4604
};
4605
enum
ELabelsVisibility
{
4606
None
,
4607
Never
,
4608
Always
,
4609
WhenInFrustum
,
4610
WhenVisible
,
4611
WhenInMiddleOfScreen
,
4612
};
4613
enum
EAvatarVariant
{
4614
Default
,
4615
Sad
,
4616
Happy
,
4617
};
4618
enum
EUISound
{
4619
Default
,
4620
Silence
,
4621
StartMatch
,
4622
EndMatch
,
4623
StartRound
,
4624
EndRound
,
4625
PhaseChange
,
4626
TieBreakPoint
,
4627
TiePoint
,
4628
VictoryPoint
,
4629
Capture
,
4630
TimeOut
,
4631
Notice
,
4632
Warning
,
4633
PlayerEliminated
,
4634
PlayerHit
,
4635
Checkpoint
,
4636
Finish
,
4637
Record
,
4638
ScoreProgress
,
4639
RankChange
,
4640
Bonus
,
4641
FirstHit
,
4642
Combo
,
4643
PlayersRemaining
,
4644
Custom1
,
4645
Custom2
,
4646
Custom3
,
4647
Custom4
,
4648
};
4649
enum
ENoticeLevel
{
4650
Default
,
4651
PlayerInfo
,
4652
PlayerWarning
,
4653
MapInfo
,
4654
MapWarning
,
4655
MatchInfo
,
4656
MatchWarning
,
4657
};
4658
enum
EObserverMode
{
4659
Default
,
4660
Forced
,
4661
Forbidden
,
4662
Manual
,
4663
};
4667
EUISequence
UISequence
;
4671
const
Boolean
UISequenceIsCompleted
;
4675
Text
UISequence_CustomMTClip
;
4679
Boolean
UISequence_CanSkipIntroMT
;
4683
Text
ManialinkPage
;
4687
Text
BigMessage
;
4691
Text
BigMessageAvatarLogin
;
4695
EAvatarVariant
BigMessageAvatarVariant
;
4699
EUISound
BigMessageSound
;
4703
Integer
BigMessageSoundVariant
;
4707
Text
StatusMessage
;
4711
Text
GaugeMessage
;
4715
Real
GaugeRatio
;
4719
Integer
GaugeClan
;
4723
Text
MarkersXML
;
4727
const
CUILayer
[]
UILayers
;
4731
Boolean
OverlayHideNotices
;
4735
Boolean
OverlayHideMapInfo
;
4739
Boolean
OverlayHideOpponentsInfo
;
4743
Boolean
OverlayHideChat
;
4747
Boolean
OverlayHideCheckPointList
;
4751
Boolean
OverlayHideRoundScores
;
4755
Boolean
OverlayHideCountdown
;
4759
Boolean
OverlayHideAll
;
4763
Boolean
OverlayHideCrosshair
;
4767
Boolean
OverlayHideGauges
;
4771
Vec2
CountdownCoord
;
4775
Boolean
NoticesFilter_HidePlayerInfo
;
4779
Boolean
NoticesFilter_HidePlayerWarning
;
4783
Boolean
NoticesFilter_HidePlayerInfoIfNotMe
;
4787
Boolean
NoticesFilter_HidePlayerWarningIfNotMe
;
4791
Boolean
NoticesFilter_HideMapInfo
;
4795
Boolean
NoticesFilter_HideMapWarning
;
4799
Boolean
NoticesFilter_HideMatchInfo
;
4803
Boolean
NoticesFilter_HideMatchWarning
;
4807
ENoticeLevel
NoticesFilter_LevelToShowAsBigMessage
;
4811
Text
ScoreTable
;
4815
EVisibility
ScoreTableVisibility
;
4819
Text
SmallScoreTable
;
4823
EVisibility
SmallScoreTableVisibility
;
4827
Boolean
ScoreTableOnlyManialink
;
4831
Boolean
AltMenuNoDefaultScores
;
4835
Boolean
AltMenuNoCustomScores
;
4839
Boolean
OverlayScoreSummary
;
4843
Ident
ScoreSummary_Player1
;
4847
Integer
ScoreSummary_Points1
;
4851
Integer
ScoreSummary_MatchPoints1
;
4855
Real
ScoreSummary_Gauge1
;
4859
Ident
ScoreSummary_Player2
;
4863
Integer
ScoreSummary_Points2
;
4867
Integer
ScoreSummary_MatchPoints2
;
4871
Real
ScoreSummary_Gauge2
;
4875
Boolean
ScreenIn3dHideScoreSummary
;
4879
Boolean
ScreenIn3dHideVersus
;
4883
Integer
CountdownEndTime
;
4887
EUIStatus
UIStatus
;
4891
ELabelsVisibility
AlliesLabelsVisibility
;
4895
EVisibility
AlliesLabelsShowGauges
;
4899
EVisibility
AlliesLabelsShowNames
;
4903
Integer
AlliesLabelsMaxCount
;
4907
ELabelsVisibility
TeamLabelsVisibility
;
4911
EVisibility
TeamLabelsShowGauges
;
4915
EVisibility
TeamLabelsShowNames
;
4919
ELabelsVisibility
OpposingTeamLabelsVisibility
;
4923
EVisibility
OpposingTeamLabelsShowGauges
;
4927
EVisibility
OpposingTeamLabelsShowNames
;
4931
Boolean
ForceSpectator
;
4935
Integer
SpectatorForceCameraType
;
4939
Ident
SpectatorAutoTarget
;
4943
Ident
SpectatorForcedTarget
;
4947
Integer
SpectatorForcedClan
;
4951
Real
SpectatorCamAutoLatitude
;
4955
Real
SpectatorCamAutoLongitude
;
4959
Real
SpectatorCamAutoRadius
;
4963
EObserverMode
SpectatorObserverMode
;
4967
Void
SendChat
(
Text
Text
);
4971
Void
SendNotice
(
Text
Text
,
ENoticeLevel
Level,
CUser
Avatar,
EAvatarVariant
AvatarVariant,
EUISound
Sound,
Integer
SoundVariant);
4975
Text
GetLayerManialinkAction
(
CUILayer
Layer);
4979
Void
ClearLayerManialinkAction
(
CUILayer
Layer);
4980
};
4981
4986
struct
CTrackManiaScore
:
public
CTmScore
{
4987
};
4988
4992
struct
CTmResult
:
public
CNod
{
4993
enum
ETmRaceResultCriteria
{
4994
Time
,
4995
Stunts
,
4996
NbRespawns
,
4997
CheckpointsProgress
,
4998
None
,
4999
};
5003
Integer
Time
;
5007
Integer
StuntsScore
;
5011
Integer
NbRespawns
;
5015
Integer
[]
Checkpoints
;
5019
Integer
Compare
(
CTmResult
Other,
ETmRaceResultCriteria
Criteria);
5020
};
5021
5025
struct
CXmlNode
:
public
CNod
{
5029
const
Text
Name
;
5033
const
Text
TextContents
;
5037
const
CXmlNode
[]
Children
;
5041
Text
GetAttributeText
(
Text
Name
,
Text
DefaultValue);
5045
Integer
GetAttributeInteger
(
Text
Name
,
Integer
DefaultValue);
5049
Real
GetAttributeReal
(
Text
Name
,
Real
DefaultValue);
5053
Boolean
GetAttributeBoolean
(
Text
Name
,
Boolean
DefaultValue);
5057
CXmlNode
GetFirstChild
(
Text
Name
);
5058
};
5059
5063
struct
CBlockModelVariant
:
public
CNod
{
5067
Text
Name
;
5071
const
Boolean
IsAllUnderground
;
5075
const
Boolean
IsPartUnderground
;
5079
const
Int3
Size
;
5083
const
Int3
OffsetBoundingBoxMin
;
5087
const
Int3
OffsetBoundingBoxMax
;
5091
CBlockUnitModel
[]
BlockUnitModels
;
5092
};
5093
5097
struct
CBlockUnitModel
:
public
CNod
{
5098
enum
CardinalDirEnum
{
5099
North
,
5100
East
,
5101
South
,
5102
West
,
5103
};
5104
enum
MultiDirEnum
{
5105
SameDir
,
5106
SymmetricalDirs
,
5107
AllDir
,
5108
OpposedDirOnly
,
5109
PerpendicularDirsOnly
,
5110
NextDirOnly
,
5111
PreviousDirOnly
,
5112
};
5116
const
Int3
Offset
;
5120
const
CBlockModelClip
[]
Clips
;
5121
};
5122
5126
struct
CXmlRpcEvent
:
public
CNod
{
5127
enum
EType
{
5128
Unknown
,
5129
Callback
,
5130
CallbackArray
,
5131
};
5135
const
EType
Type
;
5139
const
Text
Param1
;
5143
const
Text
Param2
;
5147
const
Text
ParamArray1
;
5151
const
Text
[]
ParamArray2
;
5152
};
5153
5158
struct
CSmBlock
:
public
CSmLandmark
{
5162
const
CSmBase
Base
;
5163
};
5164
5168
struct
CSmSector
:
public
CNod
{
5172
const
Ident
[]
PlayersIds
;
5173
};
5174
5178
struct
CSmGauge
:
public
CNod
{
5182
Integer
Clan
;
5186
Real
ValueReal
;
5190
Integer
Value
;
5194
Integer
Max
;
5198
Integer
Speed
;
5199
};
5200
5204
struct
CBlockModelClip
:
public
CBlockModel
{
5205
enum
EnumClipType
{
5206
ClassicClip
,
5207
FreeClipSide
,
5208
FreeClipTop
,
5209
FreeClipBottom
,
5210
};
5211
enum
MultiDirEnum
{
5212
SameDir
,
5213
SymmetricalDirs
,
5214
AllDir
,
5215
OpposedDirOnly
,
5216
PerpendicularDirsOnly
,
5217
NextDirOnly
,
5218
PreviousDirOnly
,
5219
};
5220
};
5221
5226
struct
CSmLandmark
:
public
CNod
{
5230
const
Text
Tag
;
5234
const
Integer
Order
;
5238
const
Vec3
Position
;
5242
const
Vec3
DirFront
;
5243
};
5244
5248
struct
CSmBase
:
public
CNod
{
5252
Integer
Clan
;
5256
Boolean
IsActive
;
5260
const
Integer
NumberOfCollectors
;
5261
};
5262
5263
namespace
MathLib {
5264
5265
Integer
Abs
(
Integer
_Argument1);
5266
Real
Abs
(
Real
_Argument1);
5267
Real
ToReal
(
Integer
_Argument1);
5268
Real
Sin
(
Real
_Argument1);
5269
Real
Cos
(
Real
_Argument1);
5270
Real
Tan
(
Real
_Argument1);
5271
Real
Atan2
(
Real
_Argument1,
Real
_Argument2);
5272
Real
Exp
(
Real
_Argument1);
5273
Real
Rand
(
Real
_Argument1,
Real
_Argument2);
5274
Integer
Rand
(
Integer
_Argument1,
Integer
_Argument2);
5275
Real
NearestReal
(
Integer
_Argument1);
5276
Integer
NearestInteger
(
Real
_Argument1);
5277
Integer
FloorInteger
(
Real
_Argument1);
5278
Integer
CeilingInteger
(
Real
_Argument1);
5279
Real
Distance
(
Vec3
_Argument1,
Vec3
_Argument2);
5280
Real
DotProduct
(
Vec3
_Argument1,
Vec3
_Argument2);
5281
Vec3
CrossProduct
(
Vec3
_Argument1,
Vec3
_Argument2);
5282
Real
Angle
(
Vec3
_Argument1,
Vec3
_Argument2);
5283
Real
OrientedAngle
(
Vec3
_Argument1,
Vec3
_Argument2);
5284
Real
PI
();
5285
Real
Asin
(
Real
_Argument1);
5286
Real
Acos
(
Real
_Argument1);
5287
Real
Pow
(
Real
_Argument1,
Real
_Argument2);
5288
Real
Ln
(
Real
_Argument1);
5289
Real
Sqrt
(
Real
_Argument1);
5290
};
5291
5292
namespace
TextLib {
5293
5294
Real
ToReal
(
Text
_Argument1);
5295
Integer
ToInteger
(
Text
_Argument1);
5296
Vec3
ToColor
(
Text
_Argument1);
5297
Text
SubString
(
Text
_Argument1,
Integer
_Argument2,
Integer
_Argument3);
5298
Text
SubText
(
Text
_Argument1,
Integer
_Argument2,
Integer
_Argument3);
5299
Integer
Length
(
Text
_Argument1);
5300
Text
ToText
(
Integer
_Argument1);
5301
Text
ToText
(
Real
_Argument1);
5302
Text
ToText
(
Boolean
_Argument1);
5303
Text
ToText
(
Int3
_Argument1);
5304
Text
ToText
(
Vec3
_Argument1);
5305
Text
TimeToText
(
Integer
_Argument1,
Boolean
_Argument2);
5306
Text
TimeToText
(
Integer
_Argument1);
5307
Text
ColorToText
(
Vec3
_Argument1);
5308
Text
FormatInteger
(
Integer
_Argument1,
Integer
_Argument2);
5309
Text
Compose
(
Text
_Argument1);
5310
Text
Compose
(
Text
_Argument1,
Text
_Argument2);
5311
Text
Compose
(
Text
_Argument1,
Text
_Argument2,
Text
_Argument3);
5312
Text
Compose
(
Text
_Argument1,
Text
_Argument2,
Text
_Argument3,
Text
_Argument4);
5313
Text
Compose
(
Text
_Argument1,
Text
_Argument2,
Text
_Argument3,
Text
_Argument4,
Text
_Argument5);
5314
Text
Compose
(
Text
_Argument1,
Text
_Argument2,
Text
_Argument3,
Text
_Argument4,
Text
_Argument5,
Text
_Argument6);
5315
Text
MLEncode
(
Text
_Argument1);
5316
Text
URLEncode
(
Text
_Argument1);
5317
Text
StripFormatting
(
Text
_Argument1);
5318
Text
[
Void
]
Split
(
Text
_Argument1,
Text
_Argument2);
5319
Text
SmartSplit
(
Text
_Argument1,
Integer
_Argument2,
Integer
_Argument3,
Integer
_Argument4);
5320
Text
Trim
(
Text
_Argument1);
5321
Text
ReplaceChars
(
Text
_Argument1,
Text
_Argument2,
Text
_Argument3);
5322
};
5323
5324
namespace
MapUnits {
5325
5326
CardinalDirections
GetNextDir
(CardinalDirections _Argument1);
5327
CardinalDirections
GetPreviousDir
(CardinalDirections _Argument1);
5328
CardinalDirections
GetOpposedDir
(CardinalDirections _Argument1);
5329
CardinalDirections
AddDirs
(CardinalDirections _Argument1, CardinalDirections _Argument2);
5330
CardinalDirections
SubDirs
(CardinalDirections _Argument1, CardinalDirections _Argument2);
5331
Int3
GetNeighbourCoord
(
Int3
_Argument1, CardinalDirections _Argument2);
5332
Int3
GetRotatedOffset
(
Int3
_Argument1, CardinalDirections _Argument2);
5333
Int3
GetRotatedOffsetPositive
(
Int3
_Argument1, CardinalDirections _Argument2,
Int3
_Argument3);
5334
};
5335
Generated on Thu Apr 17 2014 00:26:30 for ManiaScript by
1.8.1.2