[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Introduction to Pluggy Arrays"
Jump to navigation
Jump to search
→Dynamic Arrays: Changed example
imported>Speedo (→Arrays in Pluggy: Tweaked order) |
imported>Speedo (→Dynamic Arrays: Changed example) |
||
Line 81: | Line 81: | ||
===Dynamic Arrays=== | ===Dynamic Arrays=== | ||
Pluggy arrays are dynamic, meaning that they can grow or shrink while the game is running. This is invaluable when you don't know ahead of time how much information you'll need to store, or when the information you're storing is constantly changing, e.g. a list of items | Pluggy arrays are dynamic, meaning that they can grow or shrink while the game is running. This is invaluable when you don't know ahead of time how much information you'll need to store, or when the information you're storing is constantly changing, e.g. tracking a list of items that the player has used. | ||
*[[ArraySize]] can be used to expand an array without actually setting the new indexes. When used to shrink an array, it ''will'' delete any indexes beyond the new size. | *[[ArraySize]] can be used to expand an array without actually setting the new indexes. When used to shrink an array, it ''will'' delete any indexes beyond the new size. | ||
*[[SetInArray]], [[SetFloatInArray]] and [[SetRefInArray]] can take an optional argument (BlockSize) which allows them to expand an array to make room for new data. | *[[SetInArray]], [[SetFloatInArray]] and [[SetRefInArray]] can take an optional argument (BlockSize) which allows them to expand an array to make room for new data. |