This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld48/level/Item.gd
2021-04-25 21:52:51 -04:00

15 lines
235 B
GDScript

class_name Item
extends Reference
enum ItemType {
NONE,
FLOWER1,
FLOWER2,
FLOWER3,
}
static func type_str(item_type):
for entry in ItemType:
if item_type == ItemType.get(entry):
return str(entry)
return "Invalid ItemType"