Elements Token name and constant name?

Discussion around programming R'n'D, its source code and its tools.

Moderators: Flumminator, Zomis

Post Reply
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Elements Token name and constant name?

Post by Zomis »

Is the name of the constant (#define) always "EL_" + the element's token name?

I see that it is this for most elements, but is it like this for them ALL?
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

Yes, it is.

There are some subtle exceptions, though: Elements like "dynamite.active" ("EL_DYNAMITE_ACTIVE"), which are a combination of an element name ("dynamite") and an element action ("active"), but which also exist as a true element that can exist in a level file.
Post Reply