Re: [Alephmodular-devel] on ENUMS...
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2002-12-30 05:06:17
|
On Sunday, December 29, 2002, at 09:40 PM, Chris Pickel wrote: > [On your second message] >> ENUMS > Well, in a lot of instances, we would want to allow modules to define > values past those that were originally in the enum. A typedef would > prevent anyone from adding _media_milk on to the media types enum, so > it we should probably keep things as they are. > > On your other points, I agree. Typecasts are bad, new is good, > obsolete is bad. Well, those same ENUMS also define MAXIMUM_<enum-type> for that ENUM, so it would make additions to the enums hard to begin with. I certainly agree with your interest in adding to the enums. Poking through things, there is a definite need for a secondary Physics type file. There's quite a number of Marathon 2 definitions in the source (Media and effect definitions and sound effects) which need to be on some kind of a switch (We're loading an M2 map, swap out the Minf definitions and use the M2 ones) -Jeremy Parsons |