Tree has number of "dying" stages, which is deduced from frame count of shadow if shadow is defined, otherwise from frame count of trunk. Frame count of leaves has to be one less than deduced number stages, as last stage is always assumed to be leafless.
| trunk | :: Animation | If |
If | ||
| leaves | :: Animation | |
| leaf_generation | :: CreateParticleTriggerEffectItem | |
| branch_generation | :: CreateParticleTriggerEffectItem | |
| shadow optional | :: Animation | Shadow must have 1 more |
Shadow must have 1 more | ||
| disable_shadow_distortion_beginning_at_frame optional | :: uint32 | Only loaded if |
Only loaded if | ||
| normal optional | :: Animation | Normal must have the same frame_count as |
Normal must have the same frame_count as | ||
| overlay optional | :: Animation | Overlay must have the same frame_count as |
Overlay must have the same frame_count as | ||
| underwater optional | :: Animation | |
| underwater_layer_offset optional | :: int8 | |
| water_reflection optional | :: WaterReflectionDefinition | |
| branch_generation | :: CreateParticleTriggerEffectItem | |
| leaf_generation | :: CreateParticleTriggerEffectItem | |
| leaves | :: Animation | |
| trunk | :: Animation | If |
If | ||
| disable_shadow_distortion_beginning_at_frame optional | :: uint32 | Only loaded if |
Only loaded if | ||
| normal optional | :: Animation | Normal must have the same frame_count as |
Normal must have the same frame_count as | ||
| overlay optional | :: Animation | Overlay must have the same frame_count as |
Overlay must have the same frame_count as | ||
| shadow optional | :: Animation | Shadow must have 1 more |
Shadow must have 1 more | ||
| underwater optional | :: Animation | |
| underwater_layer_offset optional | :: int8 | |
| water_reflection optional | :: WaterReflectionDefinition | |

If shadow is not specified, this has to have one more frame than leaves.




Shadow must have 1 more frame_count than leaves.

Only loaded if shadow is present. Defaults to shadow.frame_count - 1.

Normal must have the same frame_count as leaves.

Overlay must have the same frame_count as leaves. Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. See here.


Default: 1


Prototypes
Types
Defines