diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2018-03-18 00:40:38 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2018-03-18 00:40:38 +0100 |
| commit | ff5f5c50bd2ce931a62b2eb1b0aed97c0fa370c5 (patch) | |
| tree | a38bfa6769aa8165b417babd4053834904ce5a89 /DTPlayers.c | |
| parent | 9b5d0a3ddf41e686439dcda1edfe11eee51c3b07 (diff) | |
| download | System.c4g-ff5f5c50bd2ce931a62b2eb1b0aed97c0fa370c5.tar.gz System.c4g-ff5f5c50bd2ce931a62b2eb1b0aed97c0fa370c5.zip | |
Update to newest version
DTCallback: Add fast callbacks (only Object/DefinitionCallback() is possible) and restructure CallA() for hopefully better performance
DTCallback: Fix all custom calls to allow overriding in Definition- and Object-context
DTFilterObjects: new addition
DTMenuCompatibility: add Menu_Entry compatibility version due to the new Menu_Entry-API
DTObjectSerializing: small progress, still WIP
DTPlayers: Fix constant enum definitions (thanks to the preprocessor's precalculator)
DTQuickSort: Add custom callback args
DTScopedVars: Fix all custom calls to allow overriding in Definition- and Object-context
DTScopedVars: CustomScopedVar-implementations must now return another less custom ScopedVar instead of a reference (due to _inherited())
DTTransform: disable MirrorZ
DTTransform: fix Matrix3x3Multiply and thus PreTransform
DTTransform: fix whitespace
DTTransform: update comments
DTUTility: Fix indentation and whitespace
DTUtility: Add GetShape, InRect and GetPlayerByID
DTCallback, DTObjectSerializing: Rely on the preprocessor's precalculator
Diffstat (limited to 'DTPlayers.c')
| -rw-r--r-- | DTPlayers.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/DTPlayers.c b/DTPlayers.c index ab75aef..5a688e6 100644 --- a/DTPlayers.c +++ b/DTPlayers.c @@ -2,12 +2,12 @@ #strict 2 static const Player_Number = 0; -static const Player_ID = 0 + 1; -static const Player_Name = 0 + 1 + 1; -static const Player_TaggedName = 0 + 1 + 1 + 1; -static const Player_Color = 0 + 1 + 1 + 1 + 1; -static const Player_Team = 0 + 1 + 1 + 1 + 1 + 1; -static const Player_Type = 0 + 1 + 1 + 1 + 1 + 1 + 1; +static const Player_ID = 1; +static const Player_Name = 2; +static const Player_TaggedName = 3; +static const Player_Color = 4; +static const Player_Team = 5; +static const Player_Type = 6; global func GetPlayers(int team, bool exclude) { @@ -50,10 +50,10 @@ global func GetTaggedTeamName(int team) } static const Team_ID = 0; -static const Team_Name = 0 + 1; -static const Team_TaggedName = 0 + 1 + 1; -static const Team_Color = 0 + 1 + 1 + 1; -static const Team_Players = 0 + 1 + 1 + 1 + 1; +static const Team_Name = 1; +static const Team_TaggedName = 2; +static const Team_Color = 3; +static const Team_Players = 4; global func GetTeams() { @@ -79,4 +79,4 @@ global func GetTeamIDs() ret[GetLength(ret)] = team;; } return ret; -} +}
\ No newline at end of file |
