Results 1 to 10 of 14

Thread: loading set from file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Quote Originally Posted by laggyluk View Post
    it's a byte not a string. I just let the compiler number them
    Automatic numbering for such things isn't verry suitable as you can quickly change the numbering order by changing the set itself. This means that after you change the set your program will no longer be able to load older savegame.
    Using my aproach also has advantage of you being albe to leave some identifier numbers unused so you can use them in the future and therefore avoid changing existing ones when adding new ones.

    EDIT: As for sets their primarry use is to add predefined identifiers for some properties. And yes in memory set elements are saved just as Indexes of set elements. You can consider sets as bunch od Constants of same type grouped together.
    Last edited by SilverWarior; 17-07-2013 at 08:02 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •