Browse Source

Clarify example code for signal

Section discussing placing signals above other properties did not actually contain a line for signals (which confused me). Clarifying the style guide by showing a signal on top
Brandon Lamb 5 years ago
parent
commit
734c65b470
1 changed files with 2 additions and 0 deletions
  1. 2 0
      getting_started/scripting/gdscript/gdscript_styleguide.rst

+ 2 - 0
getting_started/scripting/gdscript/gdscript_styleguide.rst

@@ -592,6 +592,8 @@ variables, in that order.
 
 ::
 
+   signal spawn_player(position)
+
    enum Jobs {KNIGHT, WIZARD, ROGUE, HEALER, SHAMAN}
 
    const MAX_LIVES = 3