fix(game-engine): 🐛 Update type annotation in ChroniclePanel and WorldMapVision to use RefCounted for observation store, aligning with GameState.get_observation_store() return type.
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d51ab54196
commit
f12d72ae87
2 changed files with 2 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ func _request_frame_render() -> void:
|
|||
var game_map: RefCounted = GameState.get_game_map()
|
||||
if game_map == null:
|
||||
return
|
||||
var store: GdObservationStore = GameState.get_observation_store(
|
||||
var store: RefCounted = GameState.get_observation_store(
|
||||
_current_player_index, game_map.width, game_map.height
|
||||
)
|
||||
if store == null:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ static func record_observations(player: RefCounted, game_map: RefCounted) -> voi
|
|||
var grid: RefCounted = GameState.get("_grid_state")
|
||||
if grid == null:
|
||||
return
|
||||
var store: GdObservationStore = GameState.get_observation_store(
|
||||
var store: RefCounted = GameState.get_observation_store(
|
||||
player.index, game_map.width, game_map.height
|
||||
)
|
||||
if store == null:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue