read effect type from stream
| 12 | |
| 13 | // read effect type from stream |
| 14 | static inline EffectType ReadEffectType |
| 15 | ( |
| 16 | FILE *stream // effects stream |
| 17 | ) { |
| 18 | EffectType t = EFFECT_UNKNOWN; // default to unknown effect type |
| 19 | |
| 20 | // read EffectType off of stream |
| 21 | fread_assert(&t, sizeof(EffectType), stream); |
| 22 | |
| 23 | return t; |
| 24 | } |
| 25 | |
| 26 | static AttributeSet ReadAttributeSet |
| 27 | ( |