mirror of
https://gitee.com/dgflash/oops-framework.git
synced 2026-05-31 18:59:19 +08:00
19 lines
423 B
TypeScript
19 lines
423 B
TypeScript
/*
|
|
* @Author: dgflash
|
|
* @Date: 2022-08-05 17:05:23
|
|
* @LastEditors: dgflash
|
|
* @LastEditTime: 2022-08-05 17:05:52
|
|
*/
|
|
|
|
/** 游戏资源路径 */
|
|
export class GameResPath {
|
|
/** 游戏配置路径 */
|
|
static getConfigPath(relative_path: string) {
|
|
return "config/game/" + relative_path;
|
|
}
|
|
|
|
/** 角色资源路径 */
|
|
static getRolePath(name: string) {
|
|
return `content/role/${name}`;
|
|
}
|
|
} |