From ff5f5c50bd2ce931a62b2eb1b0aed97c0fa370c5 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 18 Mar 2018 00:40:38 +0100 Subject: 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 --- DTPlayers.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'DTPlayers.c') 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 -- cgit v1.2.3-54-g00ecf