mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-25 08:19:07 +00:00
43 lines
1.2 KiB
GDScript3
43 lines
1.2 KiB
GDScript3
|
extends Node2D
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Signaux
|
||
|
#------------------------------------------
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Exports
|
||
|
#------------------------------------------
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Variables publiques
|
||
|
#------------------------------------------
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Variables privées
|
||
|
#------------------------------------------
|
||
|
|
||
|
var _shared_blackboard:BTBlackboard
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Fonctions Godot redéfinies
|
||
|
#------------------------------------------
|
||
|
|
||
|
func _ready() -> void:
|
||
|
_shared_blackboard = BTBlackboard.new()
|
||
|
_shared_blackboard.set_data("next_talking", "Alice")
|
||
|
_shared_blackboard.set_data("players", [])
|
||
|
|
||
|
$"PlayerAlice/BTRoot/".blackboard = _shared_blackboard
|
||
|
$"PlayerBob/BTRoot/".blackboard = _shared_blackboard
|
||
|
$"PlayerCharles/BTRoot/".blackboard = _shared_blackboard
|
||
|
$"PlayerEmily/BTRoot/".blackboard = _shared_blackboard
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Fonctions publiques
|
||
|
#------------------------------------------
|
||
|
|
||
|
#------------------------------------------
|
||
|
# Fonctions privées
|
||
|
#------------------------------------------
|
||
|
|