Roblox default.project.json
#Roblox
#术
{
"name": "PickaxeArmy",
"tree": {
"$className": "DataModel",
"ReplicatedStorage": {
"$className": "ReplicatedStorage",
"Shared": {
"$path": "src/shared"
}
},
"ServerScriptService": {
"$className": "ServerScriptService",
"Server": {
"$path": "src/server"
}
},
"StarterPlayer": {
"$className": "StarterPlayer",
"StarterPlayerScripts": {
"$className": "StarterPlayerScripts",
"Client": {
"$path": "src/client"
}
}
}
}
}
在RobloxStudio的资源管理器中生成对应的内容

ReplicatedStorage
共享代码存放位置。
ServerScriptService
服务器代码存放位置。
StarterPlayer-StarterPlayerScripts
客户端代码存放位置。
tree
代表资源管理器根目录
StarterPlayer-StarterPlayerScripts
这个是固定搭配,结构上必须这么写。
理论上其他的名字都可以自定义,那么在Studio和代码使用中就用对应的自定义名字。
但是现在的这些名字看起来意义明确,约定俗成,就这么写。