You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
Why is CreatureType defined to be a String instead of an enum? An enum would be more typesafe. As far as I can see, it's only used for an enum-like comparison here:
The reason for this is that this way we can keep adding more creatures without modifying the code at all.
All you need is to define a prefab with a Named component.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
evoli/src/components/creatures.rs
Line 18 in 2e3b159
Why is CreatureType defined to be a String instead of an enum? An enum would be more typesafe. As far as I can see, it's only used for an enum-like comparison here:
evoli/src/systems/spawner.rs
Line 105 in 2e3b159
The text was updated successfully, but these errors were encountered: