From 55b1ba15c8a162994a756263b3d0bce0a6dccdd8 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 28 Aug 2023 01:51:26 +0200 Subject: [PATCH 1/2] Add default arguments --- natives.json | 9 ++++++--- schema.json | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/natives.json b/natives.json index 7f73005..6431e73 100755 --- a/natives.json +++ b/natives.json @@ -14560,7 +14560,8 @@ }, { "type": "int", - "name": "p2" + "name": "p2", + "default": "0" } ], "return_type": "void", @@ -69373,7 +69374,8 @@ }, { "type": "BOOL", - "name": "includeEntering" + "name": "includeEntering", + "default": "FALSE" } ], "return_type": "Vehicle", @@ -85467,7 +85469,8 @@ }, { "type": "int", - "name": "p8" + "name": "p8", + "default": "0" } ], "return_type": "int", diff --git a/schema.json b/schema.json index 8ce4962..58fba47 100644 --- a/schema.json +++ b/schema.json @@ -22,6 +22,10 @@ "name": { "type": "string", "pattern": "^[A-Za-z_]+[A-Za-z0-9_]*$" + }, + "default": { + "type": "string", + "pattern": "^(0|TRUE|FALSE)$" } }, "required": ["type", "name"], From c7685adcef34570cff837b99ddbcebf10b8dba7d Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 2 Sep 2023 07:47:41 +0200 Subject: [PATCH 2/2] Default GET_ENTITY_COORDS's alive to FALSE because it's unused --- natives.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/natives.json b/natives.json index 6431e73..f86a2c7 100755 --- a/natives.json +++ b/natives.json @@ -12150,7 +12150,8 @@ }, { "type": "BOOL", - "name": "alive" + "name": "alive", + "default": "FALSE" } ], "return_type": "Vector3",