You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/files/JSON-CONFIG-PROCESSOR.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ To achieve this, we would need three processors in three different scripts. Firs
43
43
extends JSONConfigProcessor
44
44
45
45
# Overwrite the '_postprocess' method
46
-
func _postprocess(minimum: int):
46
+
func _postprocess(minimum: int):
47
47
# Set a global variable called 'min'
48
48
set_variable("min", minimum)
49
49
@@ -57,7 +57,7 @@ The 'set_max' postprocessor:
57
57
extends JSONConfigProcessor
58
58
59
59
# Overwrite the '_postprocess' method
60
-
func _postprocess(maximum: int):
60
+
func _postprocess(maximum: int):
61
61
# Set a global variable called 'max'
62
62
set_variable("max", maximum)
63
63
@@ -126,7 +126,7 @@ enum Genders{
126
126
}
127
127
128
128
129
-
func _postprocess(gender: String):
129
+
func _postprocess(gender: String):
130
130
match gender:
131
131
"MALE":
132
132
return Genders.MALE
@@ -173,13 +173,13 @@ Would generate this dictionary:
173
173
174
174
## Example: Primes validation
175
175
176
-
In this last example, we would raise a custom error. We will check if an integer is a prime. For this purpose, we need to create another postprocessor called 'prime_check':
176
+
In this last example, we would raise a custom error. We will check if an integer is prime. For this purpose, we need to create another postprocessor called 'prime_check':
0 commit comments