Closed Noah2610 closed 4 years ago
See technical implementation details in this comment (should add this to the docs): https://github.com/Noah2610/deathfloor/commit/ef175d8d65b139ed6a05664848f0f3c66149dcfc#diff-91cf08512e6aa443c1cd1e13bcbe6dd3R23-R56
Working, closing for now. Docs could use some love tho.
Implement a way for an entity config to inherit other entity configs.
Example
Abstract
Walker
entity configCan walk left (variant
"WalkLeft"
) and right (variant"WalkRight"
). Turns around when hitting a wall or detecting a ledge. This entity should be considered "abstract", which means it shouldn't be used as a standalone entity, instead this entity config should only used by inheriting it in other entity configs.Example
Jumper
entity configInherits
Walker
and jumps in regular intervals.