Files
OpenRA/OpenRA.Mods.Common
RoosterDragon dd9d600ef9 Change GetCustomMovementLayers to expose an array, not a dictionary.
As there are few custom movement layers, using an array is good for improving lookup speed. Additionally, we can simplify some code by reserving index 0 of the array for the ground layer. Code that needs to maintain a state for the ground layer and every custom movement layer can now maintain a flat array of state using index 0 for the ground layer, and the the ICustomMovementLayer.Index for the custom movement layer. This removes a lot of ternary statements checking for the ground layer special case.
2021-11-13 12:15:48 +00:00
..
2021-07-12 00:35:16 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-07-02 10:58:29 +01:00
2021-10-22 22:02:15 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-10-15 13:12:33 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-11-12 22:24:44 +01:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-10-02 20:17:03 +02:00
2021-10-15 13:12:33 +02:00
2021-06-29 18:33:21 -05:00