feat: Implement Spatial Graphs as Signal Processing Layer
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user