Anonymous Login
2020-08-14 02:54 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001068OpenClonkEngine - C4Scriptpublic2014-04-22 18:12
Assigned To 
Product Version 
Target VersionFixed in Version 
Summary0001068: Player and Team proplists
DescriptionIt would be really nice if players and teams were proplists instead of integers, so you don't have to create arrays every time you want to save something per player or per team.

It would also allow many function names to be shorter, e.g. player->GetColor() instead of GetPlayerColor(player).

It's a relatively simple change, but a lot of work to do both in the engine and in scripts and documentation.
TagsNo tags attached.
Attached Files




Sven2 (developer)

It would also effectively prevent scripters from making mistakes where they try to loop over player numbers instead of using the proper GetPlayerByIndex function.

-Issue History
Date Modified Username Field Change
2014-04-22 18:11 Sven2 New Issue
2014-04-22 18:12 Sven2 Note Added: 0003021
+Issue History