feat: 标准化占位符, 增加模板

This commit is contained in:
2025-11-29 23:38:03 +08:00
parent d647e84db0
commit 8da042ccd3
13 changed files with 402 additions and 103 deletions

View File

@@ -0,0 +1,28 @@
[template]
name = "default"
description = "默认 emod 项目模板"
[[renames]]
from = "behavior_pack/exampleScripts"
to = "behavior_pack/{{mod_name_lower}}Scripts"
[[renames]]
from = "behavior_pack"
to = "behavior_pack_{{behavior_pack_uuid_short}}"
[[renames]]
from = "resource_pack"
to = "resource_pack_{{resource_pack_uuid_short}}"
[variables]
mod_name = { required = true, description = "项目名称" }
mod_name_lower = { required = true, description = "项目名称(小写驼峰)" }
behavior_pack_uuid = { required = true, description = "行为包 UUID" }
resource_pack_uuid = { required = true, description = "资源包 UUID" }
behavior_module_uuid = { required = true, description = "行为包模块 UUID" }
resource_module_uuid = { required = true, description = "资源包模块 UUID" }
behavior_pack_uuid_short = { required = true, description = "行为包 UUID 前8位" }
resource_pack_uuid_short = { required = true, description = "资源包 UUID 前8位" }
[process]
file_extensions = ["json", "py", "lang", "txt"]