From 7a6e5be4f8cdd4993865f2aec2f71961f3c2609f Mon Sep 17 00:00:00 2001 From: moyin <2443444649@qq.com> Date: Sat, 3 Jan 2026 22:28:29 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=A0=B8?= =?UTF-8?q?=E5=BF=83=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - EventNames添加网格相关事件定义 - ProjectPaths添加网格系统和地形资源路径 --- _Core/EventNames.gd | 2 ++ _Core/ProjectPaths.gd | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/_Core/EventNames.gd b/_Core/EventNames.gd index 3110c98..cb7fd70 100644 --- a/_Core/EventNames.gd +++ b/_Core/EventNames.gd @@ -51,6 +51,8 @@ const SCENE_DATA_TRANSFER = "scene_data_transfer" const TILEMAP_READY = "tilemap_ready" const COMPONENT_MESSAGE = "component_message" const POSITION_UPDATE = "position_update" +const GRID_POSITION_CHANGED = "grid_position_changed" +const GRID_SNAP_REQUESTED = "grid_snap_requested" # ============================================================================ # 测试事件 diff --git a/_Core/ProjectPaths.gd b/_Core/ProjectPaths.gd index 9f9afc1..af5f419 100644 --- a/_Core/ProjectPaths.gd +++ b/_Core/ProjectPaths.gd @@ -19,6 +19,11 @@ const CORE_SYSTEMS = CORE_ROOT + "systems/" const CORE_COMPONENTS = CORE_ROOT + "components/" const CORE_UTILS = CORE_ROOT + "utils/" +# 系统文件路径 +const GRID_SYSTEM = CORE_SYSTEMS + "GridSystem.gd" +const EVENT_SYSTEM = CORE_SYSTEMS + "EventSystem.gd" +const TILE_SYSTEM = CORE_SYSTEMS + "TileSystem.gd" + # ============================================================================ # 场景路径 # ============================================================================ @@ -46,6 +51,10 @@ const ASSETS_FONTS = ASSETS_ROOT + "fonts/" const ASSETS_MATERIALS = ASSETS_ROOT + "materials/" const ASSETS_SHADERS = ASSETS_ROOT + "shaders/" +# 地形资源路径 +const ASSETS_TERRAIN = ASSETS_SPRITES + "terrain/" +const ASSETS_GRASS = ASSETS_TERRAIN + "grass/" + # ============================================================================ # 数据路径 # ============================================================================