feat: Implement Spatial Graphs as Signal Processing Layer

This commit is contained in:
2026-04-12 11:55:25 +05:30
parent 079fe3ff22
commit 3902999f60
6 changed files with 814 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import logging
from entities import Player
from interaction import ask_entity
from spatial_graph import SpatialGraph
from time_utils import WorldClock
from world_architect import WorldState
@@ -22,6 +23,7 @@ def start_game(
world_time=None,
location="Unknown",
world_state=None,
spatial_graph=None,
):
player = None
if player_id:
@@ -45,6 +47,10 @@ def start_game(
world_clock = WorldClock.from_time_str(world_time)
# Initialize spatial graph if not provided
if spatial_graph is None:
spatial_graph = SpatialGraph()
# Initialize world state if not provided
if world_state is None:
world_state = WorldState()
@@ -108,4 +114,5 @@ def start_game(
world_clock,
location,
world_state=world_state,
spatial_graph=spatial_graph,
)