1 This file describes some coding styles to try and adhere to when contributing to this project.
2 Please try to follow, and feel free to fix code you see not following this standard.
6 1 tab indentation for all blocks
10 No space between function names and parenthesis and parenthesis and paramters:
12 function foo(bar, baz)
14 Single space between braces and key/value pairs in table constructors:
16 { foo = "bar", bar = "foo" }
18 == Local variable naming ==
20 In this project there are many places where use of globals is restricted, and locals used for faster access.
22 Local versions of standard functions should follow the below form:
24 math.random -> m_random
29 Single-statement blocks may be written on one line when short
31 if foo then bar(); end
33 'do' and 'then' keywords should be placed at the end of the line, and never on a line by themself.