TList questions
BlitzMax Forums/BlitzMax Programming/TList questions| 
 | ||
| easy one first is list:TList=createlist() the same as list:tList= new TList 2nd is there a easy way to save a list to a file? My list a a list of a Type object that has fields of floats and integers. The only way I can see to do is to list each object in the list, write the type of field to a file and repeat. I was hoping there maybe a simpler way of saving a list in one command, or writing a list to a stream and saving the stream? John | 
| 
 | ||
| Yes they are the same. If you look into the module code, createlist just returns New TList itself. Are you familiar with inheritance/extenind types? You could have an abtract type called GameObject or GObject or the like, which has methods common to most game types, such as update, draw.. and save! | 
| 
 | ||
| There are two modules for saving objects: Brucey's Persistence module and Chaosclone: http://www.blitzbasic.com/Community/posts.php?topic=88980 | 
| 
 | ||
| I can't find bruceys on his site am I overlooking it? | 
| 
 | ||
|  I can't find bruceys on his site am I overlooking it?  It's not just me then! http://www.blitzbasic.com/Community/posts.php?topic=89526 |