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 04:18:36 +02:00

14 lines
225 B
GDScript

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