42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Thousandto.Launcher.ExternalLibs
|
|
{
|
|
/// <summary>
|
|
/// 遮挡剔除数据存储脚本
|
|
/// </summary>
|
|
public class OcMapDataScript : ScriptableObject
|
|
{
|
|
public int colRow = 0;
|
|
[System.Serializable]
|
|
public class PortalVisableData
|
|
{
|
|
public int portalId = 0;
|
|
public List<string> pathList = new List<string>();
|
|
}
|
|
public Dictionary<int, List<string>> dicPortalVisable = new Dictionary<int, List<string>>();
|
|
public PortalVisableData[] visableArray = null;
|
|
|
|
public static void GetData(Dictionary<int,List<string>> dic, List<int> idList, ScriptableObject obj)
|
|
{
|
|
OcMapDataScript ocScript = obj as OcMapDataScript;
|
|
if (ocScript != null)
|
|
{
|
|
dic.Clear();
|
|
idList.Clear();
|
|
for (int i = 0; i < ocScript.visableArray.Length; i++)
|
|
{
|
|
if (!dic.ContainsKey(ocScript.visableArray[i].portalId))
|
|
{
|
|
dic.Add(ocScript.visableArray[i].portalId, ocScript.visableArray[i].pathList);
|
|
}
|
|
}
|
|
idList.Add(ocScript.colRow);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|