MinetestWiki:Style Guide

From Minetest Developer Wiki
Revision as of 13:01, 28 November 2012 by Xyz (talk | contribs) (Created page with "Indent source code either with 2/4 spaces or tab character. Put spaces before and after binary operators, don't put spaces after unary operators (<source enclose="none">loc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Indent source code either with 2/4 spaces or tab character.

Put spaces before and after binary operators, don't put spaces after unary operators (local b = -a + 3 * (c - a) / 2)

[casting]

add_item("listname", stack)

add_item("listname", stack) (link points to EnvRef:add_item)

[InvRef]add_item("listname", stack)

[InvRef]add_item("listname", stack) (link is made to point to InvRef:add_item)