Thrive
Style Guide

To maintain a consistent coding style, contributors should follow the rules outlined on this page. This style guide is separated into four parts: common rules, rules specific for C++, rules specific for Lua and guidelines for using git.

The style rules are intended to increase readability of the source code. The most important rule of all is: Use common sense. If you have to break some rules to make the code more readable (and not just for you, but for everyone who has to read your code), break it.

Common (Both C++ and Lua)

C++

Lua

Git