(Formerly known as global array savegameindex, which is now obsolete)
readonly int ListBox.SaveGameSlots[];
Contains the corresponding save game slot for each item in the list.
This is necessary because the FillSaveGameList command sorts the list
of save games to put the most recent first. Therefore, you can use this
array to map the list box indexes back to the corresponding save game slot.
NOTE: You must use the FillSaveGameList command in order to populate
this array.
Example:
int index = lstSaveGames.SelectedIndex;
RestoreGameSlot(lstSaveGames.SaveGameSlots[index]);
will restore the currently selected game in the list, assuming FillSaveGameList
had been used previously.
See Also: ListBox.FillSaveGameList,
ListBox.SelectedIndex
|