amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

Actions aren't really attributes in Caves of Zircon, they're a code smell which means something may be missing

Open BobG1983 opened this issue 5 years ago • 3 comments

Caves of Zircon has an attribute called Actions which is a command container, which is basically a special case of

if(hasAttribute) dispatchCommandOnOtherEntity

Its a useful construct, but it feels like its a code smell and something is missing.

Actions could be hoisted up to be equivalent to facets, behaviors etc. but then you could only trigger them all. So having different triggers (bump vs shoot vs eat for example) wouldn’t work. Is there some missing concept?

Or is this the least worst idea?

BobG1983 avatar May 01 '19 22:05 BobG1983