| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月5日
|
| | | // [ Date ]: 2025年9月2日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public string packageName;
|
| | | public int isSpine;
|
| | | public string fxName;
|
| | | public string animName;
|
| | | public int[] animIndex;
|
| | | public int audio;
|
| | | public string nodeName;
|
| | | public int notShow;
|
| | | public int autoDestroy;
|
| | | public float destroyDelay;
|
| | | public int isLoop;
|
| | | public int frontBack;
|
| | | public float delayPlay;
|
| | | public int[] effectPos;
|
| | | public float effectScale;
|
| | |
|
| | | public override int LoadKey(string _key)
|
| | | {
|
| | |
| | |
|
| | | fxName = tables[3];
|
| | |
|
| | | animName = tables[4];
|
| | | if (tables[4].Contains("[")) |
| | | { |
| | | animIndex = JsonMapper.ToObject<int[]>(tables[4]); |
| | | } |
| | | else |
| | | { |
| | | string[] animIndexStringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | animIndex = new int[animIndexStringArray.Length]; |
| | | for (int i=0;i<animIndexStringArray.Length;i++) |
| | | { |
| | | int.TryParse(animIndexStringArray[i],out animIndex[i]); |
| | | } |
| | | }
|
| | |
|
| | | int.TryParse(tables[5],out audio);
|
| | |
|
| | |
| | | int.TryParse(tables[8],out autoDestroy);
|
| | |
|
| | | float.TryParse(tables[9],out destroyDelay);
|
| | |
|
| | | int.TryParse(tables[10],out isLoop); |
| | |
|
| | | int.TryParse(tables[11],out frontBack); |
| | |
|
| | | float.TryParse(tables[12],out delayPlay); |
| | |
|
| | | if (tables[13].Contains("[")) |
| | | { |
| | | effectPos = JsonMapper.ToObject<int[]>(tables[13]); |
| | | } |
| | | else |
| | | { |
| | | string[] effectPosStringArray = tables[13].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | effectPos = new int[effectPosStringArray.Length]; |
| | | for (int i=0;i<effectPosStringArray.Length;i++) |
| | | { |
| | | int.TryParse(effectPosStringArray[i],out effectPos[i]); |
| | | } |
| | | }
|
| | |
|
| | | float.TryParse(tables[14],out effectScale); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|