-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The task system and resource now has basic functionality
- Loading branch information
1 parent
3fb0016
commit bac94c2
Showing
13 changed files
with
250 additions
and
203 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
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
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
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
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
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
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
10 changes: 6 additions & 4 deletions
10
src/assets/maps/common/interactables/interactpoint/interactpoint.gd
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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
extends StaticBody2D | ||
|
||
export(Resource) var interact | ||
export(Resource) var interact_resource | ||
export(String) var display_text | ||
|
||
var interact_data: Dictionary = {} setget , get_interact_data | ||
|
||
func _ready(): | ||
interact.init_resource(self) | ||
interact_resource.init_resource(self) | ||
# print(interact.get_interact_data()) | ||
|
||
func get_interact_data(): | ||
#var interact_resource: Interact = interact | ||
interact_data = interact.get_interact_data() | ||
interact_data = interact_resource.get_interact_data() | ||
interact_data["display_text"] = display_text | ||
#interact_data["interact_resource"] = interact_resource | ||
interact_data["interact_node"] = self | ||
return interact_data | ||
|
||
func interact(): | ||
#print(interact_data) | ||
interact.interact(self) | ||
interact_resource.interact(self) |
Oops, something went wrong.