refactor: 加载系统重构

This commit is contained in:
AncTe committed 2026-09-20 20:53:46 +08:00
1 parent d12790280a
commit cc434a6c66
27 files changed
+409 -266

No files matched your search

+1
View File
@@ -1 +1,2 @@
// --- SYSTEM PREFIX END --- //
{}
+13 -5
View File
@@ -1,14 +1,22 @@
// Type: packages-user/data-state/src/types.ts ICoreStateCoreConfig
// --- SYSTEM PREFIX END --- //
{
"name": "template",
"title": "魔塔样板",
"version": "Ver 2.C",
"content": {
"mapsDir": "content/maps",
"mapListDir": "content/maps/.list.jsonc",
"enemyDir": "content/enemy.jsonc",
"itemDir": "content/item.jsonc",
"tileDir": "content/tile.jsonc"
"mapsDir": "maps",
"mapListDir": "maps/.list.jsonc",
"enemyDir": "enemy.jsonc",
"itemDir": "item.jsonc",
"itemEffectDir": "item.js",
"tileDir": "tile.jsonc",
"defaults": {
"enemyDefault": "defaults/enemy.jsonc",
"itemDefault": "defaults/item.jsonc",
"mapDefault": "defaults/map.jsonc",
"tileDefault": "defaults/tile.jsonc"
}
},
"init": {
"startEvent": "game-start",
+1
View File
@@ -1,6 +1,7 @@
// Type: packages-user/data-common/src/store/types IEnemyRawData
// "@required" means the property is required.
// For objects, system will compare every properties.
// --- SYSTEM PREFIX END --- //
{
"num": "@required",
"attribute": {
+1
View File
@@ -1,6 +1,7 @@
// Type: packages-user/data-common/src/store/types IItemRawData
// "@required" means the property is required.
// For objects, system will compare every properties.
// --- SYSTEM PREFIX END --- //
{
"num": "@required",
"category": 0,
+1
View File
@@ -1,6 +1,7 @@
// Type: packages-user/data-common/src/store/types IMapRawData
// "@required" means the property is required.
// For objects, system will compare every properties.
// --- SYSTEM PREFIX END --- //
{
"floorId": "@required",
"width": 13,
+1
View File
@@ -1,6 +1,7 @@
// Type: packages-user/data-common/src/store/types ITileRawData
// "@required" means the property is required.
// For objects, system will compare every properties.
// --- SYSTEM PREFIX END --- //
{
"num": "@required",
"id": "@required",
+1
View File
@@ -1,4 +1,5 @@
// Type: packages-user/data-common/src/store/types IEnemyRawData
// --- SYSTEM PREFIX END --- //
[
{
"num": 100,
+1
View File
@@ -1,5 +1,6 @@
// Type: packages-user/data-common/src/store/types IItemRawData
// ItemEffect: ./item.ts
// --- SYSTEM PREFIX END --- //
[
{
"num": 200,
+1
View File
@@ -1,2 +1,3 @@
// Type: string[], without `.jsonc` suffix
// --- SYSTEM PREFIX END --- //
["MT0"]
+1
View File
@@ -1,4 +1,5 @@
// Type: packages-user/data-common/src/store/types IMapRawData
// --- SYSTEM PREFIX END --- //
{
"floorId": "MT0",
"width": 13,
+1
View File
@@ -1,2 +1,3 @@
// Type: type define required
// --- SYSTEM PREFIX END --- //
{}
+1
View File
@@ -1,4 +1,5 @@
// Type: packages-user/data-common/src/store/types ITileRawData
// --- SYSTEM PREFIX END --- //
[
{
"num": 1,