Results 1 to 4 of 4

Thread: Organize referencing?

  1. #1
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default Organize referencing?

    Hi, I'm curious as how I'd best go about organizing a list of DTMs.

    I was considering going about the lists' formation, the same way SRL goes about it's bmp's. However I was curious if there's a more liked / better method then it (the srl_getbitmap func).

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Le Jingle View Post
    Hi, I'm curious as how I'd best go about organizing a list of DTMs.

    I was considering going about the lists' formation, the same way SRL goes about it's bmp's. However I was curious if there's a more liked / better method then it (the srl_getbitmap func).
    Probably a GetDTM function with constants:

    Simba Code:
    Const
      DTM_Swordfish = 1;
      DTM_Bowl = 2;
      DTM_Bucket = 3;

    Function GetDTM(Item : integer) : integer;
    begin

      Case Item of
        DTM_Swordfish : Result := DTMFromString...;
        DTM_Bowl : Result := DTMFromString...;
        DTM_Bucket : Result := DTMFromString...;
      end;

    end;

    Edit:
    So basically yes, just like srl_getbitmap

  3. #3
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    ah okay, I'll try to do that then, thanks alot!

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    E: Another question, if I had a lot of Constants/DTMs, should I make a separate file for the constants?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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