422 子 【内政】命格系统 / 【内政】命格系统-客户端
26 文件已复制
4个文件已删除
2 文件已重命名
27个文件已添加
7个文件已修改
| | |
| | | typeof(LLMJConfig),
|
| | | typeof(MainChapterConfig),
|
| | | typeof(MainLevelConfig),
|
| | | typeof(MGGanwuLVConfig),
|
| | | typeof(MGGuayuQualityConfig),
|
| | | typeof(MGGuayuTypeConfig),
|
| | | typeof(MGLingyingQualityConfig),
|
| | | typeof(ModelConfig),
|
| | | typeof(NPCConfig),
|
| | | typeof(NPCExConfig),
|
| | |
| | | ClearConfigDictionary<MainChapterConfig>();
|
| | | // 清空 MainLevelConfig 字典
|
| | | ClearConfigDictionary<MainLevelConfig>();
|
| | | // 清空 MGGanwuLVConfig 字典
|
| | | ClearConfigDictionary<MGGanwuLVConfig>();
|
| | | // 清空 MGGuayuQualityConfig 字典
|
| | | ClearConfigDictionary<MGGuayuQualityConfig>();
|
| | | // 清空 MGGuayuTypeConfig 字典
|
| | | ClearConfigDictionary<MGGuayuTypeConfig>();
|
| | | // 清空 MGLingyingQualityConfig 字典
|
| | | ClearConfigDictionary<MGLingyingQualityConfig>();
|
| | | // 清空 ModelConfig 字典
|
| | | ClearConfigDictionary<ModelConfig>();
|
| | | // 清空 NPCConfig 字典
|
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2026年1月18日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class MGGanwuLVConfig : ConfigBase<int, MGGanwuLVConfig>
|
| | | {
|
| | | static MGGanwuLVConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int GanwuLV;
|
| | | public int NextNeedExp;
|
| | |
|
| | | 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 GanwuLV); |
| | |
|
| | | int.TryParse(tables[1],out NextNeedExp); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Config/Configs/MGGanwuLVConfig.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: abcccc6019f6bb44aa86cd80c9c2af42 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2026年1月18日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class MGGuayuQualityConfig : ConfigBase<int, MGGuayuQualityConfig>
|
| | | {
|
| | | static MGGuayuQualityConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int ItemColor;
|
| | | public string ColorName;
|
| | |
|
| | | 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 ItemColor); |
| | |
|
| | | ColorName = tables[1];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Config/Configs/MGGuayuQualityConfig.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: a7c4d1a77673075449416785da198d72 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2026年1月18日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class MGGuayuTypeConfig : ConfigBase<int, MGGuayuTypeConfig>
|
| | | {
|
| | | static MGGuayuTypeConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int ItemType;
|
| | | public int EquipPlace;
|
| | |
|
| | | 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 ItemType); |
| | |
|
| | | int.TryParse(tables[1],out EquipPlace); |
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Config/Configs/MGGuayuTypeConfig.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: e16b912dd3c7c6c44aef4c02e14bec70 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2026年1月18日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class MGLingyingQualityConfig : ConfigBase<int, MGLingyingQualityConfig>
|
| | | {
|
| | | static MGLingyingQualityConfig()
|
| | | {
|
| | | // 访问过静态构造函数
|
| | | visit = true; |
| | | }
|
| | |
|
| | | public int Lingying;
|
| | | public int[] ItemColorWeightList;
|
| | |
|
| | | 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 Lingying); |
| | |
|
| | | if (tables[1].Contains("[")) |
| | | { |
| | | ItemColorWeightList = JsonMapper.ToObject<int[]>(tables[1]); |
| | | } |
| | | else |
| | | { |
| | | string[] ItemColorWeightListStringArray = tables[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | ItemColorWeightList = new int[ItemColorWeightListStringArray.Length]; |
| | | for (int i=0;i<ItemColorWeightListStringArray.Length;i++) |
| | | { |
| | | int.TryParse(ItemColorWeightListStringArray[i],out ItemColorWeightList[i]); |
| | | } |
| | | }
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Config/Configs/MGLingyingQualityConfig.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: b16aa4fa0be76f24da2bb43b3f42a0c3 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 50 命格推演 #tagCSMinggeTuiyan
|
| | |
|
| | | public class CB250_tagCSMinggeTuiyan : GameNetPackBasic {
|
| | | public byte Count; //推演个数
|
| | |
|
| | | public CB250_tagCSMinggeTuiyan () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB250;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (Count, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB250_tagCSMinggeTuiyan.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 9e739650bbf77254b8566d43faad1d00 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 51 命格分解 #tagCSMinggeDecompose
|
| | |
|
| | | public class CB251_tagCSMinggeDecompose : GameNetPackBasic {
|
| | | public byte Count;
|
| | | public byte[] IndexList; // 推演背包中的物品格子索引列表
|
| | |
|
| | | public CB251_tagCSMinggeDecompose () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB251;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (Count, NetDataType.BYTE);
|
| | | WriteBytes (IndexList, NetDataType.BYTE, Count);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB251_tagCSMinggeDecompose.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 9667ad9309793cc4a945b39ab43e5d74 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 52 命格装备替换 #tagCSMinggeEquip
|
| | |
|
| | | public class CB252_tagCSMinggeEquip : GameNetPackBasic {
|
| | | public byte MGNum; // 装到哪一套命格,目前支持3套,从1开始
|
| | | public byte Index; // 推演背包中的物品格子索引
|
| | | public byte AutoDec; // 是否自动分解
|
| | |
|
| | | public CB252_tagCSMinggeEquip () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB252;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (MGNum, NetDataType.BYTE);
|
| | | WriteBytes (Index, NetDataType.BYTE);
|
| | | WriteBytes (AutoDec, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB252_tagCSMinggeEquip.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: bf840a7798085db40b0ccac7378e45e4 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 53 命格祈灵#tagCSMinggeQiling
|
| | |
|
| | | public class CB253_tagCSMinggeQiling : GameNetPackBasic {
|
| | | public uint UseCount; //使用个数
|
| | |
|
| | | public CB253_tagCSMinggeQiling () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB253;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (UseCount, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB253_tagCSMinggeQiling.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 53d6c2fb243767c479aa24372b87b074 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 60 功能预设解锁 #tagCSFuncPresetUnlock
|
| | |
|
| | | public class CB260_tagCSFuncPresetUnlock : GameNetPackBasic {
|
| | | public byte FuncPresetType; //预设类型,1-全局;2-阵容;3-命格;
|
| | | public byte PresetID; //预设ID
|
| | |
|
| | | public CB260_tagCSFuncPresetUnlock () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB260;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (FuncPresetType, NetDataType.BYTE);
|
| | | WriteBytes (PresetID, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB260_tagCSFuncPresetUnlock.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 781646f545bc2e74d9d36d9455e07fa6 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 61 功能预设改名 #tagCSFuncPresetUpdName
|
| | |
|
| | | public class CB261_tagCSFuncPresetUpdName : GameNetPackBasic {
|
| | | public byte FuncPresetType; //预设类型,1-全局;2-阵容;3-命格;
|
| | | public byte PresetID; //预设ID
|
| | | public byte NameLen;
|
| | | public string PresetName; //预设名称
|
| | |
|
| | | public CB261_tagCSFuncPresetUpdName () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB261;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (FuncPresetType, NetDataType.BYTE);
|
| | | WriteBytes (PresetID, NetDataType.BYTE);
|
| | | WriteBytes (NameLen, NetDataType.BYTE);
|
| | | WriteBytes (PresetName, NetDataType.Chars, NameLen);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB261_tagCSFuncPresetUpdName.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 724828f057cdc1a44a502a2ca8fcedad |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 62 功能预设切换 #tagCSFuncPresetSwitch
|
| | |
|
| | | public class CB262_tagCSFuncPresetSwitch : GameNetPackBasic {
|
| | | public byte BatPresetID; //所属战斗预设ID
|
| | | public byte FuncPresetType; //预设类型,2-阵容;3-命格;
|
| | | public byte PresetID; //本功能切换至目标预设ID
|
| | |
|
| | | public CB262_tagCSFuncPresetSwitch () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB262;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (BatPresetID, NetDataType.BYTE);
|
| | | WriteBytes (FuncPresetType, NetDataType.BYTE);
|
| | | WriteBytes (PresetID, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB262_tagCSFuncPresetSwitch.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 8bf82071bbfd3434aa82abd584e397b6 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B2 63 战斗预设切换 #tagCSBatPresetSwitch
|
| | |
|
| | | public class CB263_tagCSBatPresetSwitch : GameNetPackBasic {
|
| | | public byte BatPresetType; //战斗预设类型:1-主线战斗;2-演武场防守;
|
| | | public byte BatPresetID; //切换至目标战斗预设ID
|
| | |
|
| | | public CB263_tagCSBatPresetSwitch () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB263;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (BatPresetType, NetDataType.BYTE);
|
| | | WriteBytes (BatPresetID, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB2_NewFunction/CB263_tagCSBatPresetSwitch.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 98b2c952e16a2ea4997fc35a67747c52 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| File was renamed from Main/Core/NetworkPackage/ClientPack/CB4_FightDefine/CB412_tagCSHeroLineupSave.cs |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B4 12 战斗阵容保存 #tagCSHeroLineupSave
|
| | | // B4 12 战斗阵容预设保存 #tagCSHeroPresetSave
|
| | |
|
| | | public class CB412_tagCSHeroLineupSave : GameNetPackBasic {
|
| | | public byte LineupID; //阵容ID:1-主阵容;其他待扩展,如某个防守阵容
|
| | | public class CB412_tagCSHeroPresetSave : GameNetPackBasic {
|
| | | public byte PresetID; //阵容方案预设ID
|
| | | public byte ShapeType; //本阵容阵型,0为默认阵型,可扩展不同的阵型
|
| | | public byte PosCnt;
|
| | | public tagCSHeroLineupPos[] HeroPosList; // 保存的阵容,只发送最终的阵容武将位置即可
|
| | | public tagCSHeroPresetPos[] HeroPosList; // 保存的阵容,只发送最终的阵容武将位置即可
|
| | |
|
| | | public CB412_tagCSHeroLineupSave () {
|
| | | public CB412_tagCSHeroPresetSave () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xB412;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (LineupID, NetDataType.BYTE);
|
| | | WriteBytes (PresetID, NetDataType.BYTE);
|
| | | WriteBytes (ShapeType, NetDataType.BYTE);
|
| | | WriteBytes (PosCnt, NetDataType.BYTE);
|
| | | for (int i = 0; i < PosCnt; i ++) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public class tagCSHeroLineupPos {
|
| | | public class tagCSHeroPresetPos {
|
| | | public ushort ItemIndex; //武将物品所在武将背包位置索引
|
| | | public byte PosNum; //1~n上阵位置编号
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CB4_FightDefine/CB412_tagCSHeroPresetSave.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 9d60b23ab4834c745a0ad42f58789e87 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // B1 24 武将预设信息 #tagSCHeroPresetInfo
|
| | |
|
| | | public class DTCB124_tagSCHeroPresetInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB124_tagSCHeroPresetInfo vNetData = vNetPack as HB124_tagSCHeroPresetInfo;
|
| | | TeamManager.Instance.OnHeroChangeEvent(vNetData);
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCHeroPresetInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 1bbc992f1c7af004eaa5550029a5ab86 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 32 命格信息 #tagSCMinggeInfo
|
| | |
|
| | | public class DTCB132_tagSCMinggeInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB132_tagSCMinggeInfo vNetData = vNetPack as HB132_tagSCMinggeInfo;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB132_tagSCMinggeInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 2fdfb3ab7ad6c7f4e8ef76e59e77c5a6 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 61 功能预设信息 #tagSCFuncPresetInfoList
|
| | |
|
| | | public class DTCB161_tagSCFuncPresetInfoList : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB161_tagSCFuncPresetInfoList vNetData = vNetPack as HB161_tagSCFuncPresetInfoList;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB161_tagSCFuncPresetInfoList.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: a12092a94a1d91e47979e9e29a7c6bfd |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 62 功能预设切换信息 #tagSCFuncPresetSwitchInfo
|
| | |
|
| | | public class DTCB162_tagSCFuncPresetSwitchInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB162_tagSCFuncPresetSwitchInfo vNetData = vNetPack as HB162_tagSCFuncPresetSwitchInfo;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB162_tagSCFuncPresetSwitchInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 49421c9ecd298c44d9457cc5df282158 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 63 战斗预设切换信息 #tagSCBatPresetSwitchInfo
|
| | |
|
| | | public class DTCB163_tagSCBatPresetSwitchInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB163_tagSCBatPresetSwitchInfo vNetData = vNetPack as HB163_tagSCBatPresetSwitchInfo;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB163_tagSCBatPresetSwitchInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 0e1bde48abe7964439c6ac8eb7730ebd |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | Register(typeof(HB430_tagSCTurnFightReport), typeof(DTCB430_tagSCTurnFightReport)); |
| | | Register(typeof(H0407_tagNPCDisappear), typeof(DTC0407_tagNPCDisappear)); |
| | | Register(typeof(HB418_tagSCObjPropertyRefreshView), typeof(DTCB418_tagSCObjPropertyRefreshView)); |
| | | Register(typeof(HB124_tagSCLineupInfo), typeof(DTCB124_tagSCLineupInfo)); |
| | | Register(typeof(HB124_tagSCHeroPresetInfo), typeof(DTCB124_tagSCHeroPresetInfo)); |
| | | Register(typeof(HA207_tagSCPackBuyInfo), typeof(DTCA207_tagSCPackBuyInfo)); |
| | | Register(typeof(H0722_tagItemDeadLockRefresh), typeof(DTC0722_tagItemDeadLockRefresh)); |
| | | Register(typeof(HB125_tagSCPlayerHeroInfo), typeof(DTCB125_tagSCPlayerHeroInfo)); |
| | |
| | | Register(typeof(HB432_tagSCViewNPCAttrRet), typeof(DTCB432_tagSCViewNPCAttrRet)); |
| | | Register(typeof(HA503_tagSCFamilyTaofaInfo), typeof(DTCA503_tagSCFamilyTaofaInfo)); |
| | | Register(typeof(HA504_tagSCFamilyTaofaAtkRet), typeof(DTCA504_tagSCFamilyTaofaAtkRet)); |
| | | Register(typeof(HB132_tagSCMinggeInfo), typeof(DTCB132_tagSCMinggeInfo)); |
| | | } |
| | | |
| | | //主工程注册封包 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 24 武将预设信息 #tagSCHeroPresetInfo
|
| | |
|
| | | public class HB124_tagSCHeroPresetInfo : GameNetPackBasic {
|
| | | public byte PresetCnt;
|
| | | public tagSCHeroPreset[] PresetList;
|
| | |
|
| | | public HB124_tagSCHeroPresetInfo () {
|
| | | _cmd = (ushort)0xB124;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out PresetCnt, vBytes, NetDataType.BYTE);
|
| | | PresetList = new tagSCHeroPreset[PresetCnt];
|
| | | for (int i = 0; i < PresetCnt; i ++) {
|
| | | PresetList[i] = new tagSCHeroPreset();
|
| | | TransBytes (out PresetList[i].PresetID, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out PresetList[i].ShapeType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out PresetList[i].HeroCnt, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out PresetList[i].HeroItemIndexList, vBytes, NetDataType.WORD, PresetList[i].HeroCnt);
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagSCHeroPreset {
|
| | | public byte PresetID; //阵容方案预设ID
|
| | | public byte ShapeType; // 阵型
|
| | | public byte HeroCnt;
|
| | | public ushort[] HeroItemIndexList; // 所在武将背包索引+1列表 [站位1物品索引+1, 站位2, ...],站位无武将时为0
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HB1_Role/HB124_tagSCHeroPresetInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 48b78445871212f4db55c7365ab4cf4b |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 32 命格信息 #tagSCMinggeInfo
|
| | |
|
| | | public class HB132_tagSCMinggeInfo : GameNetPackBasic {
|
| | | public ushort GanwuLV; //感悟等级,从1开始
|
| | | public uint GanwuExp; //当前感悟等级经验,每级从0开始
|
| | | public uint Lingying; //当前灵应值
|
| | |
|
| | | public HB132_tagSCMinggeInfo () {
|
| | | _cmd = (ushort)0xB132;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out GanwuLV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out GanwuExp, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out Lingying, vBytes, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HB1_Role/HB132_tagSCMinggeInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 65a51a28904a37f4bb93f31ef4162e03 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 61 功能预设信息 #tagSCFuncPresetInfoList
|
| | |
|
| | | public class HB161_tagSCFuncPresetInfoList : GameNetPackBasic {
|
| | | public byte FuncCnt;
|
| | | public tagSCFuncPresetInfo[] FuncPresetList;
|
| | |
|
| | | public HB161_tagSCFuncPresetInfoList () {
|
| | | _cmd = (ushort)0xB161;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out FuncCnt, vBytes, NetDataType.BYTE);
|
| | | FuncPresetList = new tagSCFuncPresetInfo[FuncCnt];
|
| | | for (int i = 0; i < FuncCnt; i ++) {
|
| | | FuncPresetList[i] = new tagSCFuncPresetInfo();
|
| | | TransBytes (out FuncPresetList[i].FuncPresetType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FuncPresetList[i].UnlockState, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FuncPresetList[i].PresetCnt, vBytes, NetDataType.BYTE);
|
| | | FuncPresetList[i].PresetList = new tagSCFuncPreset[FuncPresetList[i].PresetCnt];
|
| | | for (int j = 0; j < FuncPresetList[i].PresetCnt; j ++) {
|
| | | FuncPresetList[i].PresetList[j] = new tagSCFuncPreset();
|
| | | TransBytes (out FuncPresetList[i].PresetList[j].PresetID, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FuncPresetList[i].PresetList[j].NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FuncPresetList[i].PresetList[j].PresetName, vBytes, NetDataType.Chars, FuncPresetList[i].PresetList[j].NameLen);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagSCFuncPreset {
|
| | | public byte PresetID; //预设方案ID
|
| | | public byte NameLen;
|
| | | public string PresetName; //预设名称
|
| | | }
|
| | |
|
| | | public class tagSCFuncPresetInfo {
|
| | | public byte FuncPresetType; //预设类型,1-全局战斗;2-阵容;3-命格;
|
| | | public uint UnlockState; //该功能预设解锁状态,按预设ID二进制位运算记录是否已解锁
|
| | | public byte PresetCnt;
|
| | | public tagSCFuncPreset[] PresetList; //本功能下预设列表
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HB1_Role/HB161_tagSCFuncPresetInfoList.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 8f787599573bd4e49a5dca8a19c5b047 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 62 功能预设切换信息 #tagSCFuncPresetSwitchInfo
|
| | |
|
| | | public class HB162_tagSCFuncPresetSwitchInfo : GameNetPackBasic {
|
| | | public byte BatPresetCnt;
|
| | | public tagSCFuncPresetBat[] BatPresetList;
|
| | |
|
| | | public HB162_tagSCFuncPresetSwitchInfo () {
|
| | | _cmd = (ushort)0xB162;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out BatPresetCnt, vBytes, NetDataType.BYTE);
|
| | | BatPresetList = new tagSCFuncPresetBat[BatPresetCnt];
|
| | | for (int i = 0; i < BatPresetCnt; i ++) {
|
| | | BatPresetList[i] = new tagSCFuncPresetBat();
|
| | | TransBytes (out BatPresetList[i].BatPresetID, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out BatPresetList[i].FuncCnt, vBytes, NetDataType.BYTE);
|
| | | BatPresetList[i].FuncPresetList = new tagSCFuncPresetFunc[BatPresetList[i].FuncCnt];
|
| | | for (int j = 0; j < BatPresetList[i].FuncCnt; j ++) {
|
| | | BatPresetList[i].FuncPresetList[j] = new tagSCFuncPresetFunc();
|
| | | TransBytes (out BatPresetList[i].FuncPresetList[j].FuncPresetType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out BatPresetList[i].FuncPresetList[j].FuncPresetID, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagSCFuncPresetBat {
|
| | | public byte BatPresetID; //所属全局战斗预设ID
|
| | | public byte FuncCnt;
|
| | | public tagSCFuncPresetFunc[] FuncPresetList;
|
| | | }
|
| | |
|
| | | public class tagSCFuncPresetFunc {
|
| | | public byte FuncPresetType; //预设类型,2-阵容;3-命格;
|
| | | public byte FuncPresetID; //该全局战斗预设下本功能使用的预设ID
|
| | | }
|
| | |
|
| | | }
|
| File was renamed from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: f122a18cbae7cda428f82c7d35ea2c2f |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B1 63 战斗预设切换信息 #tagSCBatPresetSwitchInfo
|
| | |
|
| | | public class HB163_tagSCBatPresetSwitchInfo : GameNetPackBasic {
|
| | | public byte BatFuncCnt;
|
| | | public tagSCBatPresetSwitch[] BatPresetList;
|
| | |
|
| | | public HB163_tagSCBatPresetSwitchInfo () {
|
| | | _cmd = (ushort)0xB163;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out BatFuncCnt, vBytes, NetDataType.BYTE);
|
| | | BatPresetList = new tagSCBatPresetSwitch[BatFuncCnt];
|
| | | for (int i = 0; i < BatFuncCnt; i ++) {
|
| | | BatPresetList[i] = new tagSCBatPresetSwitch();
|
| | | TransBytes (out BatPresetList[i].BatPresetType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out BatPresetList[i].BatPresetID, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagSCBatPresetSwitch {
|
| | | public byte BatPresetType; //战斗预设类型:1-主线战斗;2-演武场防守;
|
| | | public byte BatPresetID; //该战斗功能所使用的战斗预设ID
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HB1_Role/HB163_tagSCBatPresetSwitchInfo.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 9209721f401e255458d61e617e525193 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | managers.Add(WarlordPavilionManager.Instance);
|
| | | managers.Add(ViewNPCManager.Instance);
|
| | | managers.Add(EquipRecordManager.Instance);
|
| | | managers.Add(MinggeManager.Instance);
|
| | |
|
| | | foreach (var manager in managers)
|
| | | {
|
| | | manager.Init();
|
| | |
| | | { |
| | | UIManager.Instance.OpenWindow<GubaoBaseWin>(); |
| | | } |
| | | else if (funcID == 54) |
| | | { |
| | | UIManager.Instance.OpenWindow<GubaoBaseWin>(); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 74d6c58cb7f063249bdd687f72996a17 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | public class MinggeItemCell : MonoBehaviour |
| | | { |
| | | |
| | | |
| | | public void Display(int index) |
| | | { |
| | | |
| | | } |
| | | |
| | | } |
| | | |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/System/Mingge/MinggeItemCell.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: f729ffce867acf94daebd1460fea9672 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | using System; |
| | | |
| | | |
| | | public class MinggeManager : GameSystemManager<MinggeManager> |
| | | { |
| | | |
| | | public override void Init() |
| | | { |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize; |
| | | } |
| | | |
| | | public override void Release() |
| | | { |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent -= OnBeforePlayerDataInitialize; |
| | | } |
| | | |
| | | private void OnBeforePlayerDataInitialize() |
| | | { |
| | | } |
| | | |
| | | } |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/System/Mingge/MinggeManager.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: c2cf474cbc9733c42b5aa0a021af5cdd |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using System; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | public class MinggeSmallTipWin : UIBase |
| | | { |
| | | [SerializeField] Text m_text; |
| | | protected override void InitComponent() |
| | | { |
| | | |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | |
| | | Display(); |
| | | |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | |
| | | } |
| | | |
| | | void Display() |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/System/Mingge/MinggeSmallTipWin.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: bb40bffa5c9e9d549a4b82da15987122 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| New file |
| | |
| | | using System; |
| | | using UnityEngine; |
| | | public class MinggeWin : UIBase |
| | | { |
| | | |
| | | protected override void InitComponent() |
| | | { |
| | | |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | |
| | | Display(); |
| | | |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | |
| | | } |
| | | |
| | | void Display() |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta
copy to Main/System/Mingge/MinggeWin.cs.meta
| File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/HB1_Role/DTCB124_tagSCLineupInfo.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c1fd0ec2c9c912c459b80695e2be32fb |
| | | guid: 825ef891ceecdfe418749a91ab8e0d6d |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | public const int Redpoint_BeautyMM = 117;
|
| | | //古宝
|
| | | public const int RedPoint_GuaBao = 118;
|
| | | //命格
|
| | | public const int RedPoint_Mingge = 119;
|
| | | //武将卡
|
| | | public const int HeroCardRedpoint = 200;
|
| | | public Redpoint HeroListRedpoint = new Redpoint(MainHerosRedpoint, HeroCardRedpoint);
|
| | |
| | | return; |
| | | } |
| | | |
| | | CB412_tagCSHeroLineupSave savePack = new CB412_tagCSHeroLineupSave(); |
| | | savePack.LineupID = (byte)teamType; |
| | | CB412_tagCSHeroPresetSave savePack = new CB412_tagCSHeroPresetSave(); |
| | | savePack.PresetID = (byte)teamType; |
| | | savePack.ShapeType = (byte)ShapeType; |
| | | savePack.PosCnt = (byte)GetTeamHeroCount(); |
| | | savePack.HeroPosList = new CB412_tagCSHeroLineupSave.tagCSHeroLineupPos[savePack.PosCnt]; |
| | | savePack.HeroPosList = new CB412_tagCSHeroPresetSave.tagCSHeroPresetPos[savePack.PosCnt]; |
| | | |
| | | int index = 0; |
| | | foreach (var hero in tempHeroes) |
| | |
| | | continue; |
| | | } |
| | | |
| | | savePack.HeroPosList[index] = new CB412_tagCSHeroLineupSave.tagCSHeroLineupPos |
| | | savePack.HeroPosList[index] = new CB412_tagCSHeroPresetSave.tagCSHeroPresetPos |
| | | { |
| | | ItemIndex = (ushort)heroInfo.itemHero.gridIndex, |
| | | PosNum = (byte)(posNum + 1) |
| | |
| | | teamDict.Clear(); |
| | | } |
| | | |
| | | public void OnHeroChangeEvent(HB124_tagSCLineupInfo vNetData) |
| | | public void OnHeroChangeEvent(HB124_tagSCHeroPresetInfo vNetData) |
| | | { |
| | | var heroPack = PackManager.Instance.GetSinglePack(PackType.Hero); |
| | | HashSet<TeamType> teamTypeSet = new HashSet<TeamType>(); |
| | | for (int i = 0; i < vNetData.LineupCnt; i++) |
| | | for (int i = 0; i < vNetData.PresetCnt; i++) |
| | | { |
| | | TeamType teamType = (TeamType)vNetData.LineupList[i].LineupID; |
| | | TeamType teamType = (TeamType)vNetData.PresetList[i].PresetID; |
| | | teamTypeSet.Add(teamType); |
| | | var team = GetTeam(teamType); |
| | | for (int j = 0; j < vNetData.LineupList[i].HeroCnt; j++) |
| | | for (int j = 0; j < vNetData.PresetList[i].HeroCnt; j++) |
| | | { |
| | | int index = vNetData.LineupList[i].HeroItemIndexList[j]; |
| | | int index = vNetData.PresetList[i].HeroItemIndexList[j]; |
| | | HeroInfo hero; |
| | | if (index == 0) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | var item = heroPack.GetItemByIndex(vNetData.LineupList[i].HeroItemIndexList[j] - 1); |
| | | var item = heroPack.GetItemByIndex(vNetData.PresetList[i].HeroItemIndexList[j] - 1); |
| | | if (item == null) |
| | | { |
| | | hero = null; |
| | |
| | | hero = HeroManager.Instance.GetHero(item.guid); |
| | | |
| | | } |
| | | team.RefreshServerData(vNetData.LineupList[i].ShapeType, j, hero); |
| | | team.RefreshServerData(vNetData.PresetList[i].ShapeType, j, hero); |
| | | } |
| | | } |
| | | |