20.04.2018, 12:40
(
Последний раз редактировалось NaS; 20.04.2018 в 14:58.
)
The big advantage of regular Arrays with Enums is speed. If you have data that is constantly in use and accessed very often it may be better to use an Array, however PVars aren't slow either so this will probably only come into mind with many players and very frequently used data.
I personally find Arrays more convenient though. You can directly perform operations on them, copy them etc.
Also Arrays can be bulk-saved so you could make an Array for stored Player Data and save and load it as-is. With PVars you'd need to save each value by name (or its Index).
I personally find Arrays more convenient though. You can directly perform operations on them, copy them etc.
Also Arrays can be bulk-saved so you could make an Array for stored Player Data and save and load it as-is. With PVars you'd need to save each value by name (or its Index).