Author Topic: Unity enum equivalent on doom 3 script?  (Read 253 times)

0 Members and 1 Guest are viewing this topic.

argoon

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +21/-81
  • Doom Newbie
    • View Profile
Unity enum equivalent on doom 3 script?
« on: November 23, 2016, 04:08:03 PM »
Hey guys does idtech 4 script has something like unity enum?

In unity you use - enum NAME { VALUE, VALUE_1, VALUE_2} almost like an array then you access that with - private var name : NAME= NAME.VALUE_2;

This in Unity script looks very similar to the idtech 4 script #define NAME VALUE  directive, i'm i right? If yes how could i implement that using #define?


edit - Was able to do the same using 3 different #defines but would still like to know if something like enum was possible. 
« Last Edit: November 23, 2016, 08:21:42 PM by argoon »

Ivan_the_B

  • Newbie
  • *
  • Posts: 18
  • Karma: +3/-0
  • Doom Newbie
    • View Profile
Re: Unity enum equivalent on doom 3 script?
« Reply #1 on: November 24, 2016, 12:18:52 PM »
Enums are not supported by DoomScript :(

argoon

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +21/-81
  • Doom Newbie
    • View Profile
Re: Unity enum equivalent on doom 3 script?
« Reply #2 on: November 24, 2016, 12:33:59 PM »
It really seams so, that is a petty, but in the end like i said just used 3 different #define and it did the same job. :)