2026-02-09 10:44:38 +08:00
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
// <auto-generated>
|
|
|
|
|
// This code was generated by a tool.
|
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
|
// the code is regenerated.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace cfg
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
public partial class FishYZ
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 鱼镇id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int YzNumber;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 鱼镇路线列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<int> LineList;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 鱼数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Count;
|
|
|
|
|
|
|
|
|
|
public static Dictionary<string, List<int>> dicfishYZ;
|
2026-03-27 15:18:35 +08:00
|
|
|
public static List<int> dicfishYZ_list;
|
2026-02-09 10:44:38 +08:00
|
|
|
public static void Init()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
static FishYZ()
|
|
|
|
|
{
|
|
|
|
|
string prefabFishPath = Resources.Load<TextAsset>("tbfishyz").text;
|
|
|
|
|
var v = JsonConvert.DeserializeObject<List<FishYZ>>(prefabFishPath);
|
|
|
|
|
dicfishYZ = new Dictionary<string, List<int>>();
|
2026-03-27 15:18:35 +08:00
|
|
|
dicfishYZ_list=new List<int>();
|
2026-02-09 10:44:38 +08:00
|
|
|
foreach (var item in v)
|
|
|
|
|
{
|
2026-03-27 15:18:35 +08:00
|
|
|
if (item.YzNumber !=0)
|
2026-02-09 10:44:38 +08:00
|
|
|
{
|
|
|
|
|
dicfishYZ.Add(item.YzNumber.ToString(), item.LineList);
|
2026-03-27 15:18:35 +08:00
|
|
|
dicfishYZ_list.Add(item.YzNumber);
|
2026-02-09 10:44:38 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|