-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca55022
commit e9e655b
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Migrate from v.1.2.3 to 1.3 and up | ||
|
||
In version [1.3]() some minor breaking changes happened: quest methods now accepts optional arguments.<br> | ||
This change has led to old quest scripts to break.<br> | ||
Here's how to fix all the errors you may encounter | ||
## QUEST RESOURCE | ||
|
||
If you encounter a Parse error when updating: | ||
|
||
```diff | ||
- Parser Error: The function signature doesn't match the parent. Parent signature is "start(Dictionary = <default>) -> void". | ||
``` | ||
![Parse Error](assets/migrations/1.2.3-to-1.3.png) | ||
|
||
Change all your quest scripts, making the following changes: | ||
|
||
```gdscript | ||
# script that inherits from Quest | ||
BEFORE | ||
func start() -> void: | ||
... | ||
func update() -> void: | ||
... | ||
func complete() -> void: | ||
... | ||
AFTER | ||
func start(_args: Dictionary = {}) -> void: | ||
... | ||
func update(_args: Dictionary = {}) -> void: | ||
... | ||
func complete(_args: Dictionary = {}) -> void: | ||
... | ||
``` |