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:
Claude Code 2026-04-10 12:35:25 -07:00
parent d51ab54196
commit f12d72ae87
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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: