Open Mistium opened 3 months ago
class “player” ( methods = [ "init", "test" ] def "init()" "id, position, money" player = {} player."id" = id.str player."position" = position.int player."money" = money.int endef def "test()" "input" return input == "test" endef ) P1 = player.init("1",0,0) log P1.test("test")
Still unsure of the proper syntax to make this in osl, especially with the current parser, might be better off using the compiler system somehow, maybe use a json object 🤷♀️