Closed ThePandaDever closed 2 weeks ago
:D
enums are so cool enum cool enum epic yes enums are very enummy yes very cool epic yes 😎
enum "StateEnum" [
"mainmenu",
"crafting"
]
state = StateEnum."mainmenu"
mainloop:
if state == StateEnum."mainmenu" (
//mainmenu code
)
if state == StateEnum."crafting" (
//crafting code
)
this is more realistic code
e
i mean yea sortof but if u remove the quotes from when u use StateEnum.mainmenu
would looks epicer
cant, unless i make each one a variable
): oke
ig it fits with the rest of osl :P
maybe like
enum "StateEnum" {
"mainmenu",
"crafting"
}
cause c#
else it might get consfused with an array
thats cos it literally is an array
added
enums for like enums caues enums are cool
very epic cause i have to use a similar system with strings in most my apps, and enums would make the code look nicer :3