//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2025年8月5日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class NPCLineupConfig : ConfigBase<int, NPCLineupConfig>
|
{
|
static NPCLineupConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
public int LineupID;
|
public int PosNPCID1;
|
public int PosNPCID2;
|
public int PosNPCID3;
|
public int PosNPCID4;
|
public int PosNPCID5;
|
public int PosNPCID6;
|
public int PosNPCID7;
|
public int BossID;
|
|
public override int LoadKey(string _key)
|
{
|
int key = GetKey(_key);
|
return key;
|
}
|
|
public override void LoadConfig(string input)
|
{
|
try {
|
string[] tables = input.Split('\t');
|
int.TryParse(tables[0],out LineupID);
|
|
int.TryParse(tables[1],out PosNPCID1);
|
|
int.TryParse(tables[2],out PosNPCID2);
|
|
int.TryParse(tables[3],out PosNPCID3);
|
|
int.TryParse(tables[4],out PosNPCID4);
|
|
int.TryParse(tables[5],out PosNPCID5);
|
|
int.TryParse(tables[6],out PosNPCID6);
|
|
int.TryParse(tables[7],out PosNPCID7);
|
|
int.TryParse(tables[8],out BossID);
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|