alternative code style than if/else for configurable code
I’m developing for a minecraft server written in Kotlin. The current issue I’m running into is if there is a better programming pattern than if/else blocks for mechanics that can be controlled/configured by the user.
Koltin, alternative code style than if/else for configurable code
Hayo Im developing for a minecraft server written in kotlin
The current issue im running into is if there is a better programing pattern in kotlin than if/else blocks for mechanics that can be controlled/configured by the user.
Heres a snippet, it was suggested that one of the controller mechanics (drifting) be toggleable by the user.