| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月18日
|
| | | // [ Date ]: 2025年9月3日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public int[] AllBatAttrIDList;
|
| | | public int[] AllBatAttrValueList;
|
| | | public string Tachie;
|
| | | public float[] TachieParam;
|
| | | public string SquareIcon;
|
| | | public string RectangleIcon;
|
| | | public string SpineRes;
|
| | |
| | |
|
| | | Tachie = tables[5];
|
| | |
|
| | | SquareIcon = tables[6];
|
| | | if (tables[6].Contains("[")) |
| | | { |
| | | TachieParam = JsonMapper.ToObject<float[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] TachieParamStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | TachieParam = new float[TachieParamStringArray.Length]; |
| | | for (int i=0;i<TachieParamStringArray.Length;i++) |
| | | { |
| | | float.TryParse(TachieParamStringArray[i],out TachieParam[i]); |
| | | } |
| | | }
|
| | |
|
| | | RectangleIcon = tables[7];
|
| | | SquareIcon = tables[7];
|
| | |
|
| | | SpineRes = tables[8];
|
| | | RectangleIcon = tables[8];
|
| | |
|
| | | SpineRes = tables[9];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | |
| | | |
| | | |
| | | public class DTCB430_tagSCTurnFightReport : DtcBasic { |
| | | private static GameNetEncode encoder = new GameNetEncode(); |
| | | |
| | | static byte[] vCmdBytes = new byte[2]; |
| | | |
| | |
| | | Array.Copy(vPackBytes, 0, vCmdBytes, 0, 2); |
| | | var cmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]); |
| | | bool isRegist = false; // 未注册封包处理 |
| | | |
| | | Debug.Log("DTCB430_tagSCTurnFightReport: 拆解分包 长度:" + vBodyLeng + " cmd:" + cmd); |
| | | |
| | | if (PackageRegedit.Contain(cmd)) |
| | | { |
| | |
| | | return; |
| | | } |
| | | var hero = HeroConfig.Get(heroID); |
| | | roleLHModel.Create(hero.SkinIDList[0], HeroUIManager.lihuiScale, motionName: "", isLh: true); |
| | | roleLHModel.Create(hero.SkinIDList[0], 1, motionName: "", isLh: true); |
| | | qualityImg.SetSprite("HeroCallQuality" + hero.Quality); |
| | | newMarkLHImg.SetActive(HeroUIManager.Instance.IsNewHero(heroID)); |
| | | showLHResultCell.Display(heroID, 0, true); |
| | |
| | | return; |
| | | } |
| | | skeletonGraphic.Initialize(true); |
| | | if (isLh) |
| | | { |
| | | //X轴偏移,Y轴偏移,缩放,是否水平翻转(0否1是) |
| | | if (skinConfig.TachieParam.Length == 4) |
| | | { |
| | | this.transform.localPosition = new Vector3(skinConfig.TachieParam[0], skinConfig.TachieParam[1], 0); |
| | | this.transform.localScale = Vector3.one * skinConfig.TachieParam[2]; |
| | | this.transform.localRotation = Quaternion.Euler(0, skinConfig.TachieParam[3] == 0 ? 0 : 180, 0); |
| | | } |
| | | else |
| | | { |
| | | this.transform.localPosition = Vector3.zero; |
| | | this.transform.localScale = Vector3.one; |
| | | this.transform.localRotation = Quaternion.identity; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | this.transform.localScale = Vector3.one * scale; |
| | | } |
| | | spineAnimationState = skeletonGraphic.AnimationState; |
| | | spineAnimationState.Data.DefaultMix = 0f; |
| | | if (motionName == "") |
| | |
| | | |
| | | public void Display() |
| | | { |
| | | roleLhModel.Create(hero.SkinID, HeroUIManager.lihuiScale, motionName: "", isLh: true); |
| | | roleLhModel.Create(hero.SkinID, 1, motionName: "", isLh: true); |
| | | roleXsModel.Create(hero.SkinID); |
| | | jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class)); |
| | | jobPosNameText.text = HeroUIManager.Instance.GetJobName(hero.heroConfig.Class); |
| | |
| | | |
| | | public WaitHeroFuncResponse waitResponse; //请求武将功能,与服务端交互 |
| | | |
| | | public const float lihuiScale = 0.6f; //立绘缩放大小 |
| | | |
| | | //用于非上阵武将战力变化时 武将ID:上次战力 |
| | | public KeyValuePair<string, long> lastFightPower = new KeyValuePair<string, long>(); |
| | | |