Iterating enums (via reflection)

About Monkey 2 Forums Monkey 2 Code Library Iterating enums (via reflection)

This topic contains 1 reply, has 2 voices, and was last updated by  DruggedBunny 4 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15220

    nerobot
    Participant

    Example of iterating enums.

    If you place enems to be iterated under special sub-namespace like mygame.reflected you can use #Reflect mygame.reflected and it should be cheap.

     

    Output:

    #15221

    DruggedBunny
    Participant

    Cool, thanks, was trying to do this the other day and gave up!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.