Coding Guidelines - TiberiumWorld/A-Tiberium-World GitHub Wiki
Naming Conventions
Code Style
Braces placement
Good:
if {
limit = { has_focus = "tiberium" }
add_focus = tiberium_deaths
}
Bad:
if
{
limit = {
has_focus = "tiberium"
}
add_focus = tiberium_deaths
}
Reasoning
Readability WIP
Indents
Every new scope should be on a new indent. This will make the code easier to understand and read. Indentations consist of 4 spaces. Tabs are not allowed. Tabs or spaces are not allowed to trail on a line, last character needs to be non blank.
Comments in code
Comments within the code shall be used when they are describing a complex and critical section of code or if the subject code does something a certain way because of a specific reason. Unnecessary comments in the code are not allowed.