This commit is contained in:
2024-07-31 08:57:06 +08:00
parent 79c3a23f09
commit df8b52264e
40 changed files with 634 additions and 3449 deletions

View File

@@ -12,29 +12,29 @@ export class MapModelComp extends ecs.Comp {
/** 初始地图编号 */
id: number = 1;
/** 地图数据配置 */
resConfigMap: string = "config/map/map";
// /** 地图数据配置 */
// resConfigMap: string = "config/map/map";
/** 地图转场点数据配置 */
resDeliveryMap: string = "config/map/map_delivery";
// /** 地图转场点数据配置 */
// resDeliveryMap: string = "config/map/map_delivery";
/** 地图显示预制 */
resPrefab: string = "game/map/map_rpg";
/** 地图内容资源 */
getResContentMiniMap(mapName: string): string {
return `content/map/${mapName}/${mapName}/miniMap/texture`;
};
// getResContentMiniMap(mapName: string): string {
// return `content/map/${mapName}/${mapName}/miniMap/texture`;
// };
/** 地图瓦片资源 */
getResContentSlices(bgName: string, key: string): string {
return `content/map/${bgName}/${bgName}/slices/${key}/texture`;
};
// /** 地图瓦片资源 */
// getResContentSlices(bgName: string, key: string): string {
// return `content/map/${bgName}/${bgName}/slices/${key}/texture`;
// };
/** 地图数据资源 */
getResContentData(mapName: string): string {
return `content/map/${mapName}/${mapName}`;
};
// /** 地图数据资源 */
// getResContentData(mapName: string): string {
// return `content/map/${mapName}/${mapName}`;
// };
reset() {