- added a dummy struct named '_' to define global variables. This can only be used internally.
This method was chosen because it avoids adding variable declarations to the global namespace which would have required a lot more work while polluting the grammar. This way the global variables can be handled by a small bit of special coding in the struct generator.
This commit is contained in:
parent
feb680a4eb
commit
cd392e50e9
15 changed files with 135 additions and 153 deletions
|
|
@ -212,6 +212,7 @@ DehInfo deh =
|
|||
40, // BFG cells per shot
|
||||
};
|
||||
|
||||
DEFINE_GLOBAL(deh)
|
||||
DEFINE_FIELD_X(DehInfo, DehInfo, MaxSoulsphere)
|
||||
DEFINE_FIELD_X(DehInfo, DehInfo, ExplosionStyle)
|
||||
DEFINE_FIELD_X(DehInfo, DehInfo, ExplosionAlpha)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue