Skip to content
ColonelThirtyTwo edited this page Dec 11, 2011 · 1 revision

I don't really care about code style that much, but please do these things if you write an addon for SF:

  • Don't use GLua's C-like syntax. Eg, instead of using !, &&, ||, // use not, and, or, --. In other words, stick to pure Lua syntax.
  • Document your functions and other stuff using LuaDoc syntax. There's a few additional tags, like @client / @server. Check SF's code for most of the ones I plan to implement.
Clone this wiki locally