We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enums will be simple. My current idea is to have something like the following:
import enemies { Enemy } Weapon: enum { Gun Swordfish Fist } damage_enemy_with: fun(enemy: Enemy, weapon: Weapon) { switch weapon { Weapon Gun => enemy damage(100) Weapon Swordfish => enemy damage(9000) Weapon Fist => enemy damage(10) } }
Again; very simple. :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Enums will be simple. My current idea is to have something like the following:
Again; very simple. :)
The text was updated successfully, but these errors were encountered: