52 lines
2.9 KiB
C#
52 lines
2.9 KiB
C#
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.Tilemaps;
|
||
|
|
|
||
|
|
namespace EerieVillage.Map.Data
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// BT13-Dev-Map — 맵 리소스 카탈로그 SOT (대규모 단순화 2026-05-19).
|
||
|
|
/// PD 지시 (2026-05-19): "임시로 map 경로 ground 이미지를 배경 타일로 사용. Ground Tiles 등록 시 맵의 땅 영역과 동일 배치.
|
||
|
|
/// 배경 타일도 겹치지 않고 이미지 크기만큼 자연스럽게 반복. 현재 발판 2종 AirGround_Type1·Type2."
|
||
|
|
/// "1) 배경 이미지 등록 메뉴 / 2) 배경 타일 9방향 sprite 등록 (이름·weight·tags 제거) / 3) 게임 오브젝트 (Player·Monster List·Boss)
|
||
|
|
/// / 4) 기존 자산 직접 등록·기존 프리펩 카탈로그·단일 프리펩 slot 모두 제거."
|
||
|
|
/// 이전 본문 백업: 공유/개발팀_백업/EerieVillage/BT13-Dev-Map_20260519/MapResourceCatalog.bak_20260519_0050.cs
|
||
|
|
/// </summary>
|
||
|
|
[CreateAssetMenu(menuName = "EerieVillage/Map/Resource Catalog", fileName = "MapResourceCatalog")]
|
||
|
|
public class MapResourceCatalog : ScriptableObject
|
||
|
|
{
|
||
|
|
[Header("배경 이미지 (맵 최하위 레이어 · SpriteRenderer Tiled 반복 배치)")]
|
||
|
|
[Tooltip("PD 2026-05-19 — 단일 Sprite. MapApplier 가 SpriteRenderer.drawMode=Tiled · sortingOrder=-1000 으로 맵 전체 크기 자동 반복 배치.")]
|
||
|
|
public Sprite backgroundSprite;
|
||
|
|
|
||
|
|
[Header("지면 타일 (9방향 3x3 grid · PD 2026-05-19)")]
|
||
|
|
[Tooltip("9-slice 자동 분기 (MapApplier.PickGroundTile9Slice). 표면 좌·우 가장자리·중간 + 측면·바닥 자동 선택.")]
|
||
|
|
public TileBase groundTopLeft;
|
||
|
|
public TileBase groundTop;
|
||
|
|
public TileBase groundTopRight;
|
||
|
|
public TileBase groundLeft;
|
||
|
|
public TileBase groundCenter;
|
||
|
|
public TileBase groundRight;
|
||
|
|
public TileBase groundBottomLeft;
|
||
|
|
public TileBase groundBottom;
|
||
|
|
public TileBase groundBottomRight;
|
||
|
|
|
||
|
|
[Header("지면 표면·바닥 variant (PD 2026-05-19 — 자연 연결)")]
|
||
|
|
[Tooltip("Top variant random — Top_A·Top_B·Top_C 영역 잔디 장식 다양. seed^x 결정성 보장.")]
|
||
|
|
public TileBase[] groundTopVariants;
|
||
|
|
[Tooltip("Bottom variant random — Bottom_A·Bottom_B·Bottom_C. seed^(x+999) 결정성 보장.")]
|
||
|
|
public TileBase[] groundBottomVariants;
|
||
|
|
|
||
|
|
[Header("공중 발판 2종 (PD 2026-05-19)")]
|
||
|
|
[Tooltip("AirGround_Type1 = 짧은 발판 · AirGround_Type2 = 넓고 긴 발판.")]
|
||
|
|
public TileBase platformShort;
|
||
|
|
public TileBase platformLong;
|
||
|
|
|
||
|
|
[Header("게임 오브젝트 (PD 2026-05-19 — 단순 prefab 등록)")]
|
||
|
|
public GameObject playerPrefab;
|
||
|
|
[Tooltip("Monster Prefab 리스트 — 여러 종 추가 가능. SpawnPoint 가 random pick.")]
|
||
|
|
public List<GameObject> monsters = new List<GameObject>();
|
||
|
|
public GameObject bossPrefab;
|
||
|
|
}
|
||
|
|
}
|