Relative Content

Tag Archive for kotlindesign-patterns

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.