69个文件已删除
3个文件已修改
27 文件已复制
29个文件已添加
8 文件已重命名
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 01 向玩家申请加入家族 #tagCMRequestJoinFamilyByPlayer
|
| | |
|
| | | public class CA601_tagCMRequestJoinFamilyByPlayer : GameNetPackBasic {
|
| | | public uint TagPlayerID; //目标家族玩家ID
|
| | |
|
| | | public CA601_tagCMRequestJoinFamilyByPlayer () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA601;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (TagPlayerID, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA601_tagCMRequestJoinFamilyByPlayer.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: fadb4d4a9ec6467458058725945f01b1 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 03 离开家族 #tagCMLeaveFamily
|
| | |
|
| | | public class CA603_tagCMLeaveFamily : GameNetPackBasic {
|
| | |
|
| | | public CA603_tagCMLeaveFamily () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA603;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA603_tagCMLeaveFamily.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 478b79b7383b0ce4bb67feebcdefeafb |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 04 创建家族 #tagCMCreateFamily
|
| | |
|
| | | public class CA604_tagCMCreateFamily : GameNetPackBasic {
|
| | | public string Name;
|
| | | public ushort EmblemID; //选择徽章ID,解锁仙盟等级为1级的均为可选ID
|
| | | public string EmblemWord; //徽章文字
|
| | |
|
| | | public CA604_tagCMCreateFamily () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA604;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (Name, NetDataType.Chars, 33);
|
| | | WriteBytes (EmblemID, NetDataType.WORD);
|
| | | WriteBytes (EmblemWord, NetDataType.Chars, 3);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA604_tagCMCreateFamily.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 34c60a0628714d64c81b52004268a042 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 05 删除家族成员 #tagCMDeleteFamilyMember
|
| | |
|
| | | public class CA605_tagCMDeleteFamilyMember : GameNetPackBasic {
|
| | | public uint MemberID;
|
| | |
|
| | | public CA605_tagCMDeleteFamilyMember () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA605;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (MemberID, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA605_tagCMDeleteFamilyMember.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: acc029feea3022041a1f1191b20accb8 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 12 家族捐献货币 #tagCMFamilyMoneyDonate
|
| | |
|
| | | public class CA612_tagCMFamilyMoneyDonate : GameNetPackBasic {
|
| | | public byte DonateType; // 捐献类型
|
| | |
|
| | | public CA612_tagCMFamilyMoneyDonate () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA612;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (DonateType, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA612_tagCMFamilyMoneyDonate.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: adcd1c2d18b7c4241a98230287b209ca |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 16 珍宝阁操作 #tagCMZhenbaogeOP
|
| | |
|
| | | public class CA616_tagCMZhenbaogeOP : GameNetPackBasic {
|
| | | public byte OpType; // 操作:0-砍价;1-购买
|
| | |
|
| | | public CA616_tagCMZhenbaogeOP () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA616;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (OpType, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA616_tagCMZhenbaogeOP.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: d5b7079793c8d4341a57eb6e9521ec77 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 17 查询家族行为信息 #tagCMQueryFamilyAction
|
| | |
|
| | | public class CA617_tagCMQueryFamilyAction : GameNetPackBasic {
|
| | | public byte ActionType; // 行为类型
|
| | | public uint FamilyID; // 家族ID,发0默认自己家族
|
| | |
|
| | | public CA617_tagCMQueryFamilyAction () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA617;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (ActionType, NetDataType.BYTE);
|
| | | WriteBytes (FamilyID, NetDataType.DWORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA617_tagCMQueryFamilyAction.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 2189439d4548ca44e8edebbe1b1b2246 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 20 搜索家族列表 #tagCMViewFamilyPage
|
| | |
|
| | | public class CA620_tagCMViewFamilyPage : GameNetPackBasic {
|
| | | public byte MsgLen; //模糊搜索家族,如果输入为空,则为不限制该条件
|
| | | public string Msg; //size = MsgLen
|
| | | public byte PageIndex; //查询第X页索引,0~n
|
| | | public byte ShowCount; //每页数量,前端可自行指定,最大50
|
| | |
|
| | | public CA620_tagCMViewFamilyPage () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA620;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (MsgLen, NetDataType.BYTE);
|
| | | WriteBytes (Msg, NetDataType.Chars, MsgLen);
|
| | | WriteBytes (PageIndex, NetDataType.BYTE);
|
| | | WriteBytes (ShowCount, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA620_tagCMViewFamilyPage.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: eee796ee5d07edd40be69f46933d3d12 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 21 审核请求加入家族 #tagCMJoinFamilyReply
|
| | |
|
| | | public class CA621_tagCMJoinFamilyReply : GameNetPackBasic {
|
| | | public uint TagPlayerID; //被审核玩家ID 0则代表全部
|
| | | public byte IsOK; //是否同意其加入
|
| | |
|
| | | public CA621_tagCMJoinFamilyReply () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA621;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (TagPlayerID, NetDataType.DWORD);
|
| | | WriteBytes (IsOK, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA621_tagCMJoinFamilyReply.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 0eaffd0e7b0410a46b8b9c24b04ba2d0 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 22 修改收人方式 #tagCMChangeFamilyJoin
|
| | |
|
| | | public class CA622_tagCMChangeFamilyJoin : GameNetPackBasic {
|
| | | public byte JoinReview; //成员加入是否需要审核,默认0自动加入
|
| | | public ushort JoinLVMin; //限制最低可加入的玩家等级
|
| | |
|
| | | public CA622_tagCMChangeFamilyJoin () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA622;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (JoinReview, NetDataType.BYTE);
|
| | | WriteBytes (JoinLVMin, NetDataType.WORD);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA622_tagCMChangeFamilyJoin.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: c7649cc3b2c95854aacbc7ba80fb385d |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 23 修改家族公告 #tagCMChangeFamilyBroadcast
|
| | |
|
| | | public class CA623_tagCMChangeFamilyBroadcast : GameNetPackBasic {
|
| | | public string Msg;
|
| | |
|
| | | public CA623_tagCMChangeFamilyBroadcast () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA623;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (Msg, NetDataType.Chars, 200);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA623_tagCMChangeFamilyBroadcast.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: ac9f443ecee8e50409981b1f2610fc3b |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 24 修改家族徽章 #tagCMChangeFamilyEmblem
|
| | |
|
| | | public class CA624_tagCMChangeFamilyEmblem : GameNetPackBasic {
|
| | | public byte EmblemID; // 更换的徽章ID
|
| | | public string EmblemWord; // 徽章文字
|
| | |
|
| | | public CA624_tagCMChangeFamilyEmblem () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA624;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (EmblemID, NetDataType.BYTE);
|
| | | WriteBytes (EmblemWord, NetDataType.Chars, 3);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA624_tagCMChangeFamilyEmblem.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: ff6deb8865b9b314fbed31042787a861 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 25 修改家族成员职位 #tagCMChangeFamilyMemLV
|
| | |
|
| | | public class CA625_tagCMChangeFamilyMemLV : GameNetPackBasic {
|
| | | public uint PlayerID; // 目标成员ID
|
| | | public byte FmLV; // 变更为xx职位
|
| | |
|
| | | public CA625_tagCMChangeFamilyMemLV () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA625;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | WriteBytes (PlayerID, NetDataType.DWORD);
|
| | | WriteBytes (FmLV, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA625_tagCMChangeFamilyMemLV.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: e054bdea4ce546245bcb5a5874c5a77d |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A6 26 请求家族成员列表 #tagCMGetFamilyInfo
|
| | |
|
| | | public class CA626_tagCMGetFamilyInfo : GameNetPackBasic {
|
| | |
|
| | | public CA626_tagCMGetFamilyInfo () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xA626;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ClientPack/CA6_Family/CA626_tagCMGetFamilyInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 32dffab7fe30a854694d5714937a2dfe |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | {
|
| | | base.Done(vNetPack);
|
| | | HA501_tagMCNotifyRequestJoinFamilyInfo vNetData = vNetPack as HA501_tagMCNotifyRequestJoinFamilyInfo;
|
| | | FairyModel.Instance.UpdateFairyRequested(vNetData);
|
| | | GuildManager.Instance.UpdateFairyRequested(vNetData);
|
| | | }
|
| | | }
|
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 02 捐献次数信息 #tagSCDonateCntInfo
|
| | |
|
| | | public class DTCA502_tagSCDonateCntInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA502_tagSCDonateCntInfo vNetData = vNetPack as HA502_tagSCDonateCntInfo;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HA5_Family/DTCA502_tagSCDonateCntInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: b31c60519e26811469b6567a4b0b0009 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 13 家族行为信息 #tagMCFamilyActionInfo
|
| | |
|
| | | public class DTCA513_tagMCFamilyActionInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA513_tagMCFamilyActionInfo vNetData = vNetPack as HA513_tagMCFamilyActionInfo;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HA5_Family/DTCA513_tagMCFamilyActionInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 4c5da156ba2a0084c965ef054e0108fe |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // A5 20 玩家家族信息 #tagMCRoleFamilyInfo
|
| | |
|
| | | public class DTCA520_tagMCRoleFamilyInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA520_tagMCRoleFamilyInfo vNetData = vNetPack as HA520_tagMCRoleFamilyInfo;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshGuildInfo(vNetData);
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HA5_Family/DTCA520_tagMCRoleFamilyInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 4e6f484bae96e0440b2fa32f9a9deff0 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 21 家族变更 #tagMCFamilyChange
|
| | |
|
| | | public class DTCA521_tagMCFamilyChange : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA521_tagMCFamilyChange vNetData = vNetPack as HA521_tagMCFamilyChange;
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HA5_Family/DTCA521_tagMCFamilyChange.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 95872d70a4fcdaf47a7089e954db72fb |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // A5 22 家族申请加入的玩家信息 #tagMCFamilyReqJoinInfo
|
| | |
|
| | | public class DTCA522_tagMCFamilyReqJoinInfo : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA522_tagMCFamilyReqJoinInfo vNetData = vNetPack as HA522_tagMCFamilyReqJoinInfo;
|
| | | GuildManager.Instance.OnRefreshRequestJoinPlayerInfo(vNetData);
|
| | | }
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/DTCFile/ServerPack/HA5_Family/DTCA522_tagMCFamilyReqJoinInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: d235ae417d9390246bb55c56736bc8a5 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // A5 23 搜索家族返回列表 #tagMCFamilyViewList
|
| | |
|
| | | public class DTCA523_tagMCFamilyViewList : DtcBasic {
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HA523_tagMCFamilyViewList vNetData = vNetPack as HA523_tagMCFamilyViewList;
|
| | | GuildManager.Instance.OnRefreshGuildViewList(vNetData);
|
| | | }
|
| | | }
|
File was renamed from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 351ccdfe011a3de438269fc320a978dd |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | Register(typeof(HAA03_tagMCDailyPackBuyGiftInfo), typeof(DTCAA03_tagMCDailyPackBuyGiftInfo)); |
| | | Register(typeof(HA302_tagMCFuncOpenStateList), typeof(DTCA302_tagMCFuncOpenStateList)); |
| | | Register(typeof(HA320_tagSCFBInfoList), typeof(DTCA320_tagSCFBInfoList)); |
| | | Register(typeof(H0F03_tagRoleFamilyInfo), typeof(DTC0F03_tagRoleFamilyInfo)); |
| | | Register(typeof(H0F05_tagFamilyChange), typeof(DTC0F05_tagFamilyChange)); |
| | | Register(typeof(H0F07_tagFamilyRenameResult), typeof(DTC0F07_tagFamilyRenameResult)); |
| | | Register(typeof(H0212_tagNotifyCode), typeof(DTC0212_tagNotifyCode)); |
| | | Register(typeof(H0316_tagPackResetOK), typeof(DTC0316_tagPackResetOK)); |
| | | Register(typeof(H0430_tagPlayerInFamilyInfoRefresh), typeof(DTC0430_tagPlayerInFamilyInfoRefresh)); |
| | | Register(typeof(HA3BD_tagMCBuyEnterInfo), typeof(DTCA3BD_tagMCBuyEnterInfo)); |
| | | Register(typeof(HA315_tagMCDailyActionCnt), typeof(DTCA315_tagMCDailyActionCnt)); |
| | | Register(typeof(HA333_tagMCDailyActivityInfoList), typeof(DTCA333_tagMCDailyActivityInfoList)); |
| | | Register(typeof(HA350_tagMCTreasureResult), typeof(DTCA350_tagMCTreasureResult)); |
| | | Register(typeof(HA351_tagMCTreasureInfo), typeof(DTCA351_tagMCTreasureInfo)); |
| | | Register(typeof(HA362_tagMCMailList), typeof(DTCA362_tagMCMailList)); |
| | | Register(typeof(HA363_tagMCMailStateChange), typeof(DTCA363_tagMCMailStateChange)); |
| | | Register(typeof(HA40D_tagGCServerCreatFamilyTimes), typeof(DTCA40D_tagGCServerCreatFamilyTimes)); |
| | | Register(typeof(HA401_tagGCViewFamilyRequestInfo), typeof(DTCA401_tagGCViewFamilyRequestInfo)); |
| | | Register(typeof(HA403_tagGCFamilyActionInfo), typeof(DTCA403_tagGCFamilyActionInfo)); |
| | | Register(typeof(HA408_tagGCPyAllFamilyView), typeof(DTCA408_tagGCPyAllFamilyView)); |
| | | Register(typeof(HA501_tagMCNotifyRequestJoinFamilyInfo), typeof(DTCA501_tagMCNotifyRequestJoinFamilyInfo)); |
| | | Register(typeof(HA705_tagSCQueryPlayerCacheResult), typeof(DTCA705_tagSCQueryPlayerCacheResult)); |
| | | Register(typeof(HA801_tagMCGiveAwardInfo), typeof(DTCA801_tagMCGiveAwardInfo)); |
| | |
| | | Register(typeof(HB037_tagSCGoldRushCampInfo), typeof(DTCB037_tagSCGoldRushCampInfo)); |
| | | Register(typeof(HA722_tagSCADInfoList), typeof(DTCA722_tagSCADInfoList)); |
| | | Register(typeof(H0320_tagFBEnd), typeof(DTC0320_tagFBEnd)); |
| | | Register(typeof(HA502_tagSCDonateCntInfo), typeof(DTCA502_tagSCDonateCntInfo)); |
| | | Register(typeof(HA513_tagMCFamilyActionInfo), typeof(DTCA513_tagMCFamilyActionInfo)); |
| | | Register(typeof(HA520_tagMCRoleFamilyInfo), typeof(DTCA520_tagMCRoleFamilyInfo)); |
| | | Register(typeof(HA521_tagMCFamilyChange), typeof(DTCA521_tagMCFamilyChange)); |
| | | Register(typeof(HA522_tagMCFamilyReqJoinInfo), typeof(DTCA522_tagMCFamilyReqJoinInfo)); |
| | | Register(typeof(HA523_tagMCFamilyViewList), typeof(DTCA523_tagMCFamilyViewList)); |
| | | |
| | | } |
| | | |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 02 捐献次数信息 #tagSCDonateCntInfo
|
| | |
|
| | | public class HA502_tagSCDonateCntInfo : GameNetPackBasic {
|
| | | public byte Count;
|
| | | public byte[] DonateCntList; // 今日已捐献次数列表 [捐献类型1次数, ...]
|
| | |
|
| | | public HA502_tagSCDonateCntInfo () {
|
| | | _cmd = (ushort)0xA502;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out Count, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out DonateCntList, vBytes, NetDataType.BYTE, Count);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA502_tagSCDonateCntInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 64fcb827402c7014fb662e51276a2b4e |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
File was renamed from Main/Core/NetworkPackage/ServerPack/HA4_Family/HA403_tagGCFamilyActionInfo.cs |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A4 03 家族行为信息 #tagGCFamilyActionInfo
|
| | | // A5 13 家族行为信息 #tagMCFamilyActionInfo
|
| | |
|
| | | public class HA403_tagGCFamilyActionInfo : GameNetPackBasic {
|
| | | public class HA513_tagMCFamilyActionInfo : GameNetPackBasic {
|
| | | public uint FamilyID; //家族ID
|
| | | public byte ActionType; //类型
|
| | | public ushort Count; //数量
|
| | | public tagGCFamilyAction[] FamilyActionList; //size = Count |
| | | public tagMCFamilyAction[] FamilyActionList; //size = Count |
| | |
|
| | | public HA403_tagGCFamilyActionInfo () {
|
| | | _cmd = (ushort)0xA403;
|
| | | public HA513_tagMCFamilyActionInfo () {
|
| | | _cmd = (ushort)0xA513;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out FamilyID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ActionType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out Count, vBytes, NetDataType.WORD);
|
| | | FamilyActionList = new tagGCFamilyAction[Count];
|
| | | FamilyActionList = new tagMCFamilyAction[Count];
|
| | | for (int i = 0; i < Count; i ++) {
|
| | | FamilyActionList[i] = new tagGCFamilyAction();
|
| | | FamilyActionList[i] = new tagMCFamilyAction();
|
| | | TransBytes (out FamilyActionList[i].Time, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyActionList[i].NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyActionList[i].Name, vBytes, NetDataType.Chars, FamilyActionList[i].NameLen);
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public class tagGCFamilyAction {
|
| | | public class tagMCFamilyAction {
|
| | | public uint Time; //时间
|
| | | public byte NameLen;
|
| | | public string Name;
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA513_tagMCFamilyActionInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: ded96afa34fa76746b3558013c5a1b54 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 20 玩家家族信息 #tagMCRoleFamilyInfo
|
| | |
|
| | | public class HA520_tagMCRoleFamilyInfo : GameNetPackBasic {
|
| | | public uint FamilyID;
|
| | | public string FamilyName; //家族名称
|
| | | public byte FamilyLV; //家族等级
|
| | | public uint FamilyLVExp; //家族等级经验
|
| | | public byte JoinReview; //成员加入是否需要审核,默认0自动加入
|
| | | public ushort JoinLVMin; //限制最低可加入的玩家等级
|
| | | public uint ServerID; //区服ID,创建时以族长的区服ID赋值
|
| | | public uint EmblemID; //徽章ID
|
| | | public string EmblemWord; //徽章文字
|
| | | public uint FightPower; //总战力,求余亿部分
|
| | | public uint FightPowerEx; //总战力,整除亿部分
|
| | | public ushort BroadcastLen; //公告
|
| | | public string Broadcast; //size = BroadcastLen
|
| | | public uint LeaderID; //族长玩家ID
|
| | | public byte MemberCount; //人数
|
| | | public tagMCRoleFamilyMember[] MemberList; //size = MemberCount
|
| | |
|
| | | public HA520_tagMCRoleFamilyInfo () {
|
| | | _cmd = (ushort)0xA520;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out FamilyID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyName, vBytes, NetDataType.Chars, 33);
|
| | | TransBytes (out FamilyLV, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyLVExp, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out JoinReview, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out JoinLVMin, vBytes, NetDataType.WORD);
|
| | | TransBytes (out ServerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out EmblemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out EmblemWord, vBytes, NetDataType.Chars, 3);
|
| | | TransBytes (out FightPower, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FightPowerEx, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out BroadcastLen, vBytes, NetDataType.WORD);
|
| | | TransBytes (out Broadcast, vBytes, NetDataType.Chars, BroadcastLen);
|
| | | TransBytes (out LeaderID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberCount, vBytes, NetDataType.BYTE);
|
| | | MemberList = new tagMCRoleFamilyMember[MemberCount];
|
| | | for (int i = 0; i < MemberCount; i ++) {
|
| | | MemberList[i] = new tagMCRoleFamilyMember();
|
| | | TransBytes (out MemberList[i].PlayerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out MemberList[i].Name, vBytes, NetDataType.Chars, MemberList[i].NameLen);
|
| | | TransBytes (out MemberList[i].JoinTime, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].FmLV, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out MemberList[i].LV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out MemberList[i].Job, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out MemberList[i].RealmLV, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out MemberList[i].Face, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].FacePic, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].TitleID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].FightPower, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].FightPowerEx, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].ServerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].ContribTotal, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].ContribDay, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].DonateCntTotal, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MemberList[i].DonateCntDay, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out MemberList[i].OffTime, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagMCRoleFamilyMember {
|
| | | public uint PlayerID;
|
| | | public byte NameLen;
|
| | | public string Name; //size = NameLen
|
| | | public uint JoinTime; //加入家族时时间戳
|
| | | public byte FmLV; //家族职位: 0-成员;1-精英;2-副族长;3-族长
|
| | | public ushort LV; //等级
|
| | | public byte Job; //职业
|
| | | public byte RealmLV; //境界
|
| | | public uint Face; //基本脸型
|
| | | public uint FacePic; //头像框
|
| | | public uint TitleID; //称号
|
| | | public uint FightPower; //战力,求余亿部分
|
| | | public uint FightPowerEx; //战力,整除亿部分
|
| | | public uint ServerID; //所属区服ID
|
| | | public uint ContribTotal; //总贡献度
|
| | | public uint ContribDay; //日贡献度
|
| | | public uint DonateCntTotal; //总捐献次数
|
| | | public byte DonateCntDay; //日捐献次数
|
| | | public uint OffTime; // 0-在线; >0-/离线时间戳
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA520_tagMCRoleFamilyInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: f45ac152d74dc644c83a4c42fbe81af4 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 21 家族变更 #tagMCFamilyChange
|
| | |
|
| | | public class HA521_tagMCFamilyChange : GameNetPackBasic {
|
| | | public byte Type;
|
| | |
|
| | | public HA521_tagMCFamilyChange () {
|
| | | _cmd = (ushort)0xA521;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out Type, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA521_tagMCFamilyChange.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 8aec250ed756e2e40a3fad27b904620d |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 22 家族申请加入的玩家信息 #tagMCFamilyReqJoinInfo
|
| | |
|
| | | public class HA522_tagMCFamilyReqJoinInfo : GameNetPackBasic {
|
| | | public byte ReqCnt;
|
| | | public tagMCFamilyReqJoinPlayer[] ReqJoinList;
|
| | |
|
| | | public HA522_tagMCFamilyReqJoinInfo () {
|
| | | _cmd = (ushort)0xA522;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out ReqCnt, vBytes, NetDataType.BYTE);
|
| | | ReqJoinList = new tagMCFamilyReqJoinPlayer[ReqCnt];
|
| | | for (int i = 0; i < ReqCnt; i ++) {
|
| | | ReqJoinList[i] = new tagMCFamilyReqJoinPlayer();
|
| | | TransBytes (out ReqJoinList[i].PlayerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ReqJoinList[i].Name, vBytes, NetDataType.Chars, ReqJoinList[i].NameLen);
|
| | | TransBytes (out ReqJoinList[i].ReqTime, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].LV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out ReqJoinList[i].Job, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ReqJoinList[i].RealmLV, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ReqJoinList[i].Face, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].FacePic, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].TitleID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].FightPower, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].FightPowerEx, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].ServerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ReqJoinList[i].IsOnLine, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagMCFamilyReqJoinPlayer {
|
| | | public uint PlayerID;
|
| | | public byte NameLen;
|
| | | public string Name; //size = NameLen
|
| | | public uint ReqTime; //申请时间戳
|
| | | public ushort LV; //等级
|
| | | public byte Job; //职业
|
| | | public byte RealmLV; //境界
|
| | | public uint Face; //基本脸型
|
| | | public uint FacePic; //头像框
|
| | | public uint TitleID; //称号
|
| | | public uint FightPower; //战力,求余亿部分
|
| | | public uint FightPowerEx; //战力,整除亿部分
|
| | | public uint ServerID; //所属区服ID
|
| | | public byte IsOnLine; //是否在线
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA522_tagMCFamilyReqJoinInfo.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 9795713053481b54ebc767593e299677 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A5 23 搜索家族返回列表 #tagMCFamilyViewList
|
| | |
|
| | | public class HA523_tagMCFamilyViewList : GameNetPackBasic {
|
| | | public byte MsgLen;
|
| | | public string Msg; //搜索条件原值返回
|
| | | public byte PageIndex; //查询第X页索引,0~n
|
| | | public byte ShowCount; //每页数量
|
| | | public byte TotalPage; //一共有多少页
|
| | | public byte FamilyCount;
|
| | | public tagMCFamilyView[] FamilyList; //本页家族信息列表
|
| | |
|
| | | public HA523_tagMCFamilyViewList () {
|
| | | _cmd = (ushort)0xA523;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out MsgLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out Msg, vBytes, NetDataType.Chars, MsgLen);
|
| | | TransBytes (out PageIndex, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ShowCount, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out TotalPage, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyCount, vBytes, NetDataType.BYTE);
|
| | | FamilyList = new tagMCFamilyView[FamilyCount];
|
| | | for (int i = 0; i < FamilyCount; i ++) {
|
| | | FamilyList[i] = new tagMCFamilyView();
|
| | | TransBytes (out FamilyList[i].Rank, vBytes, NetDataType.WORD);
|
| | | TransBytes (out FamilyList[i].FamilyID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].FamilyNameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyList[i].FamilyName, vBytes, NetDataType.Chars, FamilyList[i].FamilyNameLen);
|
| | | TransBytes (out FamilyList[i].LeaderID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].LeaderNameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyList[i].LeaderName, vBytes, NetDataType.Chars, FamilyList[i].LeaderNameLen);
|
| | | TransBytes (out FamilyList[i].FamilyLV, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyList[i].JoinReview, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out FamilyList[i].JoinLVMin, vBytes, NetDataType.WORD);
|
| | | TransBytes (out FamilyList[i].ServerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].EmblemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].EmblemWord, vBytes, NetDataType.Chars, 3);
|
| | | TransBytes (out FamilyList[i].FightPower, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].FightPowerEx, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyList[i].MemberCount, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | |
|
| | | public class tagMCFamilyView {
|
| | | public ushort Rank; //名次,从1开始
|
| | | public uint FamilyID; //家族ID
|
| | | public byte FamilyNameLen;
|
| | | public string FamilyName; //size = FamilyNameLen
|
| | | public uint LeaderID; //族长ID
|
| | | public byte LeaderNameLen;
|
| | | public string LeaderName; //size = LeaderNameLen
|
| | | public byte FamilyLV; //家族等级
|
| | | public byte JoinReview; //成员加入是否需要审核,默认0自动加入
|
| | | public ushort JoinLVMin; //限制最低可加入的玩家等级
|
| | | public uint ServerID; //区服ID
|
| | | public uint EmblemID; //徽章ID
|
| | | public string EmblemWord; //徽章文字
|
| | | public uint FightPower; //总战力,求余亿部分
|
| | | public uint FightPowerEx; //总战力,整除亿部分
|
| | | public byte MemberCount; //成员人数
|
| | | }
|
| | |
|
| | | }
|
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/Core/NetworkPackage/ServerPack/HA5_Family/HA523_tagMCFamilyViewList.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: e93f254377e9dfe4789b878dcec69b15 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | managers.Add(RoleParticularModel.Instance);
|
| | | managers.Add(StoreModel.Instance);
|
| | | managers.Add(PhantasmPavilionModel.Instance);
|
| | | managers.Add(FairyModel.Instance);
|
| | | managers.Add(GuildManager.Instance);
|
| | | managers.Add(TeamManager.Instance);
|
| | | managers.Add(TaskManager.Instance);
|
| | | managers.Add(DailySpecialsModel.Instance);
|
| | | managers.Add(MailManager.Instance);
|
| | | managers.Add(PackManager.Instance);
|
| | | managers.Add(HappyXBModel.Instance);
|
| | | managers.Add(HeroManager.Instance);
|
| | | managers.Add(GMCmdManager.Instance);
|
| | | managers.Add(FairyEmblemModel.Instance);
|
| | | managers.Add(GuildEmblemModel.Instance);
|
| | | managers.Add(EquipModel.Instance);
|
| | | managers.Add(DungeonManager.Instance);
|
| | | managers.Add(DailyQuestModel.Instance);
|
| | | managers.Add(CustomizedRechargeModel.Instance);
|
| | | managers.Add(CustomizedGiftModel.Instance);
|
| | | managers.Add(ChatManager.Instance);
|
File was renamed from Main/System/FairyEmblem/EmblemHelper.cs |
| | |
| | | {
|
| | | if (FamilyEmblemConfig.HasKey(id))
|
| | | return id;
|
| | | return !FamilyEmblemConfig.HasKey(FairyEmblemModel.Instance.defaultFamilyEmblemId) ? 0 : FairyEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | return !FamilyEmblemConfig.HasKey(GuildEmblemModel.Instance.defaultFamilyEmblemId) ? 0 : GuildEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | }
|
| | |
|
| | | public static int GetMyEmblemID()
|
| | | {
|
| | | int emblemID = (int)PlayerDatas.Instance.fairyData.fairy.Extra6;
|
| | | if (FamilyEmblemConfig.HasKey(emblemID) && FairyEmblemModel.Instance.IsUnLock(emblemID))
|
| | | int emblemID = (int)PlayerDatas.Instance.fairyData.fairy.EmblemID;
|
| | | if (FamilyEmblemConfig.HasKey(emblemID) && GuildEmblemModel.Instance.IsUnLock(emblemID))
|
| | | return emblemID;
|
| | | return !FamilyEmblemConfig.HasKey(FairyEmblemModel.Instance.defaultFamilyEmblemId) ? 0 : FairyEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | return !FamilyEmblemConfig.HasKey(GuildEmblemModel.Instance.defaultFamilyEmblemId) ? 0 : GuildEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | }
|
| | |
|
| | | public static int GetEmblemEffectID(int id)
|
| | | {
|
| | | FairyEmblemModel.Instance.TryGetEffectID(id, out int effectID);
|
| | | GuildEmblemModel.Instance.TryGetEffectID(id, out int effectID);
|
| | | return effectID;
|
| | | }
|
| | |
|
| | | public static int GetDefaultFamilyEmblemId()
|
| | | {
|
| | | return FairyEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | return GuildEmblemModel.Instance.defaultFamilyEmblemId;
|
| | | }
|
| | | }
|
| | |
|
File was renamed from Main/System/FairyEmblem/FairyEmblemModel.cs |
| | |
| | | Active, // 2 - 活动获得
|
| | | }
|
| | |
|
| | | public class FairyEmblemModel : GameSystemManager<FairyEmblemModel>
|
| | | public class GuildEmblemModel : GameSystemManager<GuildEmblemModel>
|
| | | {
|
| | | public readonly int MaxItemRowCount = 6; // 一行展示x个徽章
|
| | | public readonly int FamilyActionsType = 15; // 家族行为类型15
|
| | | public readonly int FamilyActionsType = 15; // 徽章类型15
|
| | | public readonly int FuncId = 237;
|
| | | public int defaultFamilyEmblemId; // 默认徽章ID
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | //<EmblemId,FamilyAction>
|
| | | Dictionary<int, HA403_tagGCFamilyActionInfo.tagGCFamilyAction> familyActions = new Dictionary<int, HA403_tagGCFamilyActionInfo.tagGCFamilyAction>();
|
| | |
|
| | | public event Action ChooseEmblemIdChangeEvent; //切换标签页
|
| | | public event Action<int, int> UpdateFamilyActionEvent;
|
| | |
|
| | | Redpoint entranceRedPoint = new Redpoint(10702, MainRedDot.FairyEmbleManageRepoint); //仙盟管理面板入口红点
|
| | |
|
| | |
| | | UpdateRedPoint();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | familyActions.Clear();
|
| | | }
|
| | |
|
| | | public void UpdateRedPoint()
|
| | | {
|
| | |
| | | public bool TryGetNowEmblemID(out int nowID)
|
| | | {
|
| | | nowID = 0;
|
| | | int emblemID = (int)PlayerDatas.Instance.fairyData.fairy.Extra6;
|
| | | int emblemID = (int)PlayerDatas.Instance.fairyData.fairy.EmblemID;
|
| | | if (FamilyEmblemConfig.HasKey(emblemID) && IsUnLock(emblemID))
|
| | | {
|
| | | nowID = (int)emblemID;
|
| | |
| | | imgTitle.rectTransform.localScale = new Vector3(scale, scale, scale);
|
| | | }
|
| | |
|
| | | //发包 查询玩家当前仙盟徽章
|
| | | public void TrySendA408EmblemInfoPack()
|
| | | {
|
| | | //已经发过包了
|
| | | if (isSendA408Pack)
|
| | | return;
|
| | | isSendA408Pack = true;
|
| | | var pack = new CA408_tagCGQueryFamilyAction();
|
| | | pack.ActionType = 15;
|
| | | pack.FamilyID = PlayerDatas.Instance.baseData.FamilyId;
|
| | | GameNetSystem.Instance.SendInfo(pack);
|
| | | }
|
| | |
|
| | | //发包 更改仙盟徽章
|
| | | public void SendCA413ChangeFamilyEmblemPack(int emblemId)
|
| | | {
|
| | | var pack = new CA413_tagCGChangeFamilyEmblem();
|
| | | pack.EmblemID = (byte)emblemId;
|
| | | GameNetSystem.Instance.SendInfo(pack);
|
| | | }
|
| | |
|
| | |
|
| | | public List<int> GetShowList()
|
| | | {
|
| | |
| | | {
|
| | | FamilyEmblemConfig config = FamilyEmblemConfig.Get(emblemId);
|
| | | FairyEmblemUnlockMethodType type = GetFairyEmblemUnlockType(emblemId);
|
| | | HA403_tagGCFamilyActionInfo.tagGCFamilyAction familyAction;
|
| | | HA513_tagMCFamilyActionInfo.tagMCFamilyAction familyAction;
|
| | | switch (type)
|
| | | {
|
| | | case FairyEmblemUnlockMethodType.Custom:
|
| | |
| | | return emblemId == Id;
|
| | | }
|
| | |
|
| | | public bool IsLimitTime(int emblemId, out HA403_tagGCFamilyActionInfo.tagGCFamilyAction familyAction)
|
| | | public bool IsLimitTime(int emblemId, out HA513_tagMCFamilyActionInfo.tagMCFamilyAction familyAction)
|
| | | {
|
| | | familyAction = new HA403_tagGCFamilyActionInfo.tagGCFamilyAction();
|
| | | familyAction = new HA513_tagMCFamilyActionInfo.tagMCFamilyAction();
|
| | | FamilyEmblemConfig config = FamilyEmblemConfig.Get(emblemId);
|
| | | FairyEmblemUnlockMethodType type = GetFairyEmblemUnlockType(emblemId);
|
| | | switch (type)
|
| | |
| | |
|
| | | public bool IsCaptain()
|
| | | {
|
| | | return (int)PlayerDatas.Instance.fairyData.mine.FamilyLV == 3;
|
| | | return (int)PlayerDatas.Instance.fairyData.mine.FmLV == 3;
|
| | | }
|
| | |
|
| | | // 尝试从封包中得到指定的徽章时效信息(活动途径获取的徽章,定制徽章)
|
| | | private bool TryGetfamilyAction(int emblemId, out HA403_tagGCFamilyActionInfo.tagGCFamilyAction familyAction)
|
| | | private bool TryGetfamilyAction(int emblemId, out HA513_tagMCFamilyActionInfo.tagMCFamilyAction familyAction)
|
| | | {
|
| | | familyAction = new HA403_tagGCFamilyActionInfo.tagGCFamilyAction();
|
| | | if (!familyActions.TryGetValue(emblemId, out var info))
|
| | | return false;
|
| | | familyAction = info;
|
| | | return true;
|
| | | familyAction = new HA513_tagMCFamilyActionInfo.tagMCFamilyAction();
|
| | | if (GuildManager.Instance.TryGetFamilyActions(FamilyActionsType, out var actions))
|
| | | {
|
| | | for (int i = 0; i < actions.Length; i++)
|
| | | {
|
| | | if (actions[i].Value1 == emblemId)
|
| | | {
|
| | | familyAction = actions[i];
|
| | | return true;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | return false;
|
| | | }
|
| | |
|
| | | public bool TryGetEffectID(int emblemId, out int effectID)
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public void UpdateFamilyAction(HA403_tagGCFamilyActionInfo vNetData)
|
| | | {
|
| | | if (vNetData.ActionType != FamilyActionsType || PlayerDatas.Instance.baseData == null || (int)vNetData.FamilyID != (int)PlayerDatas.Instance.baseData.FamilyId)
|
| | | return;
|
| | | for (int i = 0; i < vNetData.FamilyActionList.Length; i++)
|
| | | {
|
| | | HA403_tagGCFamilyActionInfo.tagGCFamilyAction familyAction = vNetData.FamilyActionList[i];
|
| | | familyActions[(int)familyAction.Value1] = familyAction;
|
| | | }
|
| | | UpdateFamilyActionEvent?.Invoke((int)vNetData.FamilyID, vNetData.ActionType);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public class EmblemModel
|
New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | /// <summary> |
| | | /// 加入公会界面 |
| | | /// </summary> |
| | | public class GuildJoinWin : UIBase |
| | | { |
| | | [SerializeField] InputField findText; |
| | | [SerializeField] Button findBtn; |
| | | [SerializeField] Button createGuildBtn; |
| | | [SerializeField] Button quicklyJoinGuildBtn; |
| | | [SerializeField] ScrollerController guildListScroller; |
| | | [SerializeField] Transform noGuildTf; |
| | | |
| | | string lastQuery = ""; |
| | | int lastPage = 0; |
| | | protected override void InitComponent() |
| | | { |
| | | findBtn.AddListener(OnFindBtnClick); |
| | | createGuildBtn.AddListener(OnCreateGuildBtnClick); |
| | | quicklyJoinGuildBtn.AddListener(OnQuicklyJoinGuildBtnClick); |
| | | } |
| | | protected override void OnPreOpen() |
| | | { |
| | | findText.text = ""; |
| | | //打开界面默认请求,滚动的时候需要处理页数 |
| | | OnFindBtnClick(); |
| | | GuildManager.Instance.OnRefreshFairyList += OnRefreshGuildList; |
| | | Display(); |
| | | } |
| | | |
| | | void Display() |
| | | { |
| | | CreateScroller(); |
| | | } |
| | | |
| | | |
| | | //列表变小的话 重新创建;列表变大的话,只添加 |
| | | void CreateScroller() |
| | | { |
| | | var startCount = guildListScroller.GetNumberOfCells(); |
| | | if (startCount > GuildManager.Instance.pageIndexList.Count) |
| | | { |
| | | guildListScroller.Refresh(); |
| | | } |
| | | for (int i = startCount; i < GuildManager.Instance.pageIndexList.Count; i++) |
| | | { |
| | | guildListScroller.AddCell(ScrollerDataType.Header, i); |
| | | } |
| | | guildListScroller.Restart(); |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | GuildManager.Instance.OnRefreshFairyList -= OnRefreshGuildList; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | void OnRefreshGuildList() |
| | | { |
| | | CreateScroller(); |
| | | } |
| | | |
| | | private void OnFindBtnClick() |
| | | { |
| | | lastQuery = findText.text; |
| | | lastPage = 0; |
| | | guildListScroller.Refresh(); |
| | | GuildManager.Instance.SendFindGuild(lastQuery); |
| | | } |
| | | |
| | | private void OnCreateGuildBtnClick() |
| | | { |
| | | // TODO: 实现创建公会逻辑 |
| | | } |
| | | |
| | | private void OnQuicklyJoinGuildBtnClick() |
| | | { |
| | | // TODO: 实现快速加入公会逻辑 |
| | | |
| | | } |
| | | |
| | | } |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/System/Guild/GuildJoinWin.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: 1b6e45da69f8b0c4f9c44a48b518d51b |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using LitJson;
|
| | | using UnityEngine;
|
| | |
|
| | |
|
| | | public class GuildManager : GameSystemManager<GuildManager>
|
| | | {
|
| | | // 申请的公会列表
|
| | | private List<int> m_FairyRequesteds = new List<int>();
|
| | | // 公会附加数据,按类型存储
|
| | | // 公会ID, 类型ID, 数据
|
| | | public Dictionary<int, Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction[]>> familyActions = new Dictionary<int, Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction[]>>();
|
| | | public event Action<int, int> FamilyActionInfoEvent;
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | ParseConfig();
|
| | | // PlayerDatas.Instance.fairyData.OnRefreshFairyMine += OnRefreshFairyMine;
|
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize;
|
| | | }
|
| | | public override void Release()
|
| | | {
|
| | | // PlayerDatas.Instance.fairyData.OnRefreshFairyMine -= OnRefreshFairyMine;
|
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent -= OnBeforePlayerDataInitialize;
|
| | | }
|
| | |
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | m_FairyRequesteds.Clear();
|
| | | familyActions.Clear();
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | private void OnRefreshFairyMine()
|
| | | {
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | //退出公会
|
| | | familyActions.Clear();
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | #region 发包
|
| | | public void SendKickFairy(uint playerID)
|
| | | {
|
| | | var pak = new CA605_tagCMDeleteFamilyMember();
|
| | | pak.MemberID = playerID;
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | //申请/撤销 加入公会
|
| | | public void SendApplyFairy(uint id, int type)
|
| | | {
|
| | | if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Fairy, true))
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("HasFairyTip"));
|
| | | return;
|
| | | }
|
| | | CA602_tagCMRequesJoinFamily rqPack = new CA602_tagCMRequesJoinFamily();
|
| | | rqPack.Type = (byte)type;
|
| | | rqPack.TagFamilyID = id;
|
| | | GameNetSystem.Instance.SendInfo(rqPack);
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | #region 配置
|
| | | |
| | | public int createFairyCost
|
| | | {
|
| | | get;
|
| | | private set;
|
| | | }
|
| | | public int createMoneyType;
|
| | |
|
| | | public int requestPlayerCount; //每个仙盟最大可接受申请加入玩家数
|
| | | public int requestGuildCount; //每个玩家最大可同时申请加入仙盟数
|
| | |
|
| | | // 权限ID: 1-收人,2-变更职位,3-发布公告,4-踢人
|
| | | // 职位: 0-成员,1-精英,2-副盟主,3-盟主
|
| | | public Dictionary<int, int> guildWorkToLevel = new Dictionary<int, int>();
|
| | |
|
| | | void ParseConfig()
|
| | | {
|
| | | var config = FuncConfigConfig.Get("CreateFamily");
|
| | | createFairyCost = int.Parse(config.Numerical1);
|
| | | createMoneyType = int.Parse(config.Numerical2);
|
| | |
|
| | | // config = FuncConfigConfig.Get("FamilyMatchSet");
|
| | | // fairyLeagueLimit = int.Parse(config.Numerical1);
|
| | |
|
| | | config = FuncConfigConfig.Get("FamilyReqJoin");
|
| | | requestPlayerCount = int.Parse(config.Numerical1);
|
| | | requestGuildCount = int.Parse(config.Numerical2);
|
| | |
|
| | | config = FuncConfigConfig.Get("FamilyPower");
|
| | | guildWorkToLevel = ConfigParse.ParseIntDict(config.Numerical1);
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | #endregion
|
| | |
|
| | |
|
| | |
|
| | | public void UpdateFairyRequested(HA501_tagMCNotifyRequestJoinFamilyInfo _package)
|
| | | {
|
| | | m_FairyRequesteds.Clear();
|
| | | for (int i = 0; i < _package.RequestCount; i++)
|
| | | {
|
| | | m_FairyRequesteds.Add((int)_package.RequestJoinFamilyIDList[i]);
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public bool FairyRequested(int _fairyId)
|
| | | {
|
| | | return m_FairyRequesteds.Contains(_fairyId);
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | public bool InSameFairy(int playerId)
|
| | | {
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | return PlayerDatas.Instance.fairyData.GetMember(playerId) != null;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | #region 仙盟名限制
|
| | | public bool CheckFairyNameLimit(string _name, out int errorCode)
|
| | | {
|
| | | errorCode = 0;
|
| | | if (string.IsNullOrEmpty(_name))
|
| | | {
|
| | | errorCode = 0;
|
| | | return false;
|
| | | }
|
| | | if (DirtyWordConfig.IsDirtWord(_name) || UIHelper.HasSpecialCharac(_name)
|
| | | || DirtyNameConfig.IsDirtName(_name))
|
| | | {
|
| | | errorCode = 1;
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | | |
| | | |
| | | public void ShowFairyNameErrorTip(int _errorCode)
|
| | | {
|
| | | switch (_errorCode)
|
| | | {
|
| | | case 0:
|
| | | SysNotifyMgr.Instance.ShowTip("FamilyNameChangeNoNull");
|
| | | break;
|
| | | case 1:
|
| | | SysNotifyMgr.Instance.ShowTip("FamilyNameChangeUnlegal");
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | public void SendChangeFairyName(string _name, int _itemIndex)
|
| | | {
|
| | | LanguageVerify.Instance.VerifyFairy(_name, 2, PlayerDatas.Instance.fairyData.fairy.FamilyName, PlayerDatas.Instance.fairyData.mine.FmLV, (bool ok, string content) =>
|
| | | {
|
| | | CA611_tagCMRenameFamily _pak = new CA611_tagCMRenameFamily();
|
| | | _pak.NewName = content;
|
| | | _pak.ItemIndex = (byte)_itemIndex;
|
| | | _pak.NewNameLen = (byte)Encoding.UTF8.GetBytes(content).Length;
|
| | | GameNetSystem.Instance.SendInfo(_pak);
|
| | | });
|
| | | }
|
| | |
|
| | |
|
| | | #endregion
|
| | |
|
| | | |
| | |
|
| | |
|
| | | #region 仙盟商店开启
|
| | | public int fairyStoreLimit = 0;
|
| | | public bool fairyStoreOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | var fairy = PlayerDatas.Instance.fairyData.fairy;
|
| | | if (fairy != null && fairy.FamilyLV >= fairyStoreLimit)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
|
| | | public void ProcessErrorTip()
|
| | | {
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("DailyQuestwinUnionLimit");
|
| | | }
|
| | | else if (PlayerDatas.Instance.fairyData.fairy.FamilyLV < fairyStoreLimit)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairyStoreOpenLimit", fairyStoreLimit);
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | public void UpdateFamilyAction(HA513_tagMCFamilyActionInfo _package)
|
| | | {
|
| | |
|
| | | if (!familyActions.ContainsKey((int)_package.FamilyID))
|
| | | {
|
| | | familyActions.Add((int)_package.FamilyID, new Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction[]>());
|
| | | }
|
| | |
|
| | | familyActions[(int)_package.FamilyID][_package.ActionType] = _package.FamilyActionList;
|
| | | FamilyActionInfoEvent?.Invoke((int)_package.FamilyID, _package.ActionType);
|
| | | }
|
| | |
|
| | | public bool TryGetFamilyActions(int actionType, out HA513_tagMCFamilyActionInfo.tagMCFamilyAction[] familyAction)
|
| | | {
|
| | | familyAction = null;
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | if (!familyActions.ContainsKey((int)PlayerDatas.Instance.fairyData.fairy.FamilyID))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
|
| | | if (!familyActions[(int)PlayerDatas.Instance.fairyData.fairy.FamilyID].TryGetValue(actionType, out familyAction))
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | | |
| | |
|
| | |
|
| | | #region 仙盟列表
|
| | |
|
| | | public event Action OnRefreshFairyList;
|
| | |
|
| | | // 查找的公会ID:公会数据
|
| | | public Dictionary<int, FairyData> guildsDict = new Dictionary<int, FairyData>();
|
| | | // 按查询页存储
|
| | | public List<int> pageIndexList = new List<int>(); //正常是按页查询,顺序添加即可
|
| | | public int curPageIndex;
|
| | | public int totalPageCount;
|
| | |
|
| | | //查找公会列表
|
| | | public void OnRefreshGuildViewList(HA523_tagMCFamilyViewList vNetData)
|
| | | {
|
| | | curPageIndex = vNetData.PageIndex;
|
| | | totalPageCount = vNetData.TotalPage;
|
| | |
|
| | | foreach (var guildInfo in vNetData.FamilyList)
|
| | | {
|
| | | FairyData data = new FairyData();
|
| | | guildsDict[(int)guildInfo.FamilyID] = data;
|
| | | SetFairyViewData(data, guildInfo);
|
| | | pageIndexList.Add((int)guildInfo.FamilyID);
|
| | | }
|
| | |
|
| | |
|
| | | if (OnRefreshFairyList != null)
|
| | | {
|
| | | OnRefreshFairyList();
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | //查找公会
|
| | | public void SendFindGuild(string msg, int pageIndex = 0, int pageSize = 20)
|
| | | {
|
| | | if (pageIndex == 0)
|
| | | {
|
| | | //默认查询第一页即代表重新开始查询,清空之前的数据
|
| | | guildsDict.Clear();
|
| | | pageIndexList.Clear();
|
| | | }
|
| | | var pack = new CA620_tagCMViewFamilyPage();
|
| | |
|
| | | pack.Msg = msg;
|
| | | pack.MsgLen = (byte)msg.Length;
|
| | | pack.PageIndex = (byte)pageIndex;
|
| | | pack.ShowCount = (byte)pageSize;
|
| | |
|
| | | GameNetSystem.Instance.SendInfo(pack);
|
| | | }
|
| | |
|
| | |
|
| | | public static void SetFairyViewData(FairyData data, HA523_tagMCFamilyViewList.tagMCFamilyView view)
|
| | | {
|
| | | data.Rank = view.Rank;
|
| | | data.FamilyID = view.FamilyID;
|
| | | data.FamilyName = view.FamilyName;
|
| | | data.LeaderID = view.LeaderID;
|
| | | data.LeaderName = view.LeaderName;
|
| | | data.FamilyLV = view.FamilyLV;
|
| | | data.JoinReview = view.JoinReview;
|
| | | data.JoinLVMin = view.JoinLVMin;
|
| | | data.ServerID = view.ServerID;
|
| | | data.EmblemID = view.EmblemID;
|
| | | data.EmblemWord = view.EmblemWord;
|
| | | data.totalFightPower = view.FightPowerEx * Constants.ExpPointValue + view.FightPower;
|
| | | data.MemberCount = view.MemberCount;
|
| | |
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region 申请列表
|
| | | public event Action OnRefreshApplyList;
|
| | | private List<FairyApply> applyList = new List<FairyApply>();
|
| | | private Redpoint memberRedpoint = new Redpoint(107, 10702);
|
| | | private Redpoint applyRedpoint = new Redpoint(10702, 1070201);
|
| | |
|
| | | //申请加入的玩家信息
|
| | | public void OnRefreshRequestJoinPlayerInfo(HA522_tagMCFamilyReqJoinInfo vNetData)
|
| | | {
|
| | | applyList.Clear();
|
| | | for (int i = 0; i < vNetData.ReqCnt; i++)
|
| | | {
|
| | | FairyApply apply = new FairyApply();
|
| | | apply.Name = vNetData.ReqJoinList[i].Name;
|
| | | apply.PlayerID = vNetData.ReqJoinList[i].PlayerID;
|
| | | apply.ReqTime = vNetData.ReqJoinList[i].ReqTime;
|
| | | apply.LV = vNetData.ReqJoinList[i].LV;
|
| | | apply.Job = vNetData.ReqJoinList[i].Job;
|
| | | apply.RealmLV = vNetData.ReqJoinList[i].RealmLV;
|
| | | apply.Face = vNetData.ReqJoinList[i].Face;
|
| | | apply.FacePic = vNetData.ReqJoinList[i].FacePic;
|
| | | apply.TitleID = vNetData.ReqJoinList[i].TitleID;
|
| | | apply.FightPower = vNetData.ReqJoinList[i].FightPower + vNetData.ReqJoinList[i].FightPowerEx * Constants.ExpPointValue;
|
| | | apply.ServerID = vNetData.ReqJoinList[i].ServerID;
|
| | | apply.IsOnLine = vNetData.ReqJoinList[i].IsOnLine;
|
| | | applyList.Add(apply);
|
| | | }
|
| | | if (OnRefreshApplyList != null)
|
| | | {
|
| | | OnRefreshApplyList();
|
| | | }
|
| | | UpdateRequestRedpoint();
|
| | | }
|
| | |
|
| | | void UpdateRequestRedpoint()
|
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.HasFairy && PlayerDatas.Instance.fairyData.IsCanFunc(LimitFunc.CanCall))
|
| | | {
|
| | | applyRedpoint.state = applyList.Count > 0 ? RedPointState.Simple : RedPointState.None;
|
| | | }
|
| | | else
|
| | | {
|
| | | applyRedpoint.state = RedPointState.None;
|
| | | }
|
| | | }
|
| | |
|
| | | public List<FairyApply> GetApplyList()
|
| | | {
|
| | | return applyList;
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
|
| | | } |
New file |
| | |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | |
| | | public class GuildViewListCell : CellView |
| | | { |
| | | [SerializeField] Image rankImg; |
| | | [SerializeField] Transform rankTextTf; |
| | | [SerializeField] Text rankText; |
| | | [SerializeField] Image guildEmblemImg; |
| | | [SerializeField] Text guildLevelText; |
| | | [SerializeField] Text guildNameText; |
| | | [SerializeField] Text leaderNameText; |
| | | [SerializeField] Text totalFightPowerText; |
| | | [SerializeField] Text limitText; |
| | | [SerializeField] Button opearteBtn; |
| | | [SerializeField] Text opearteBtnText; |
| | | [SerializeField] Text guildMemberCountText; |
| | | |
| | | |
| | | public void Display(int index) |
| | | { |
| | | var guildID = GuildManager.Instance.pageIndexList[index]; |
| | | var guildInfo = GuildManager.Instance.guildsDict[guildID]; |
| | | if (guildInfo == null) return; |
| | | if (guildInfo.Rank <= 3) |
| | | { |
| | | rankImg.SetActive(true); |
| | | rankImg.SetSprite("guildnum" + guildInfo.Rank); |
| | | rankTextTf.SetActive(false); |
| | | } |
| | | else |
| | | { |
| | | rankImg.SetActive(false); |
| | | rankTextTf.SetActive(true); |
| | | rankText.text = guildInfo.Rank.ToString(); |
| | | } |
| | | guildLevelText.text = Language.Get("L1094") + guildInfo.FamilyLV; |
| | | guildNameText.text = guildInfo.FamilyName; |
| | | leaderNameText.text = guildInfo.LeaderName; |
| | | totalFightPowerText.text = guildInfo.totalFightPower.ToString(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
copy from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta
copy to Main/System/Guild/GuildViewListCell.cs.meta
File was copied from Main/Core/NetworkPackage/DTCFile/ServerPack/H0F_Family/DTC0F05_tagFamilyChange.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3d4f5226983a2974a81c3682c0340f41 |
| | | guid: f28f9be690140a841a349692ed00256a |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | |
|
| | |
|
| | | /** 玩家仙盟相关信息缓存数据 */
|
| | | public class PlayerFairyData
|
| | | {
|
| | | private bool hasFairy = false;
|
| | | public bool HasFairy
|
| | | {
|
| | | get { return hasFairy; }
|
| | | }
|
| | |
|
| | |
|
| | | public FairyData fairy = null; //自己的公会数据
|
| | | public FairyMember mine = null;
|
| | | public event Action OnRefreshFairyInfo;
|
| | | public event Action OnRefreshFairyMine;
|
| | | private Dictionary<int, FairyMember> memberDic = new Dictionary<int, FairyMember>();
|
| | |
|
| | | // 0-成员,1-精英,2-副盟主,3-盟主
|
| | | public int leaderID;
|
| | | // // 精英
|
| | | // public List<int> elitePlayerIDList = new List<int>();
|
| | | // // 副盟主
|
| | | // public List<int> deputyLeaderPlayerIDList = new List<int>();
|
| | |
|
| | | public void OnRefreshGuildInfo(HA520_tagMCRoleFamilyInfo vNetData)
|
| | | {
|
| | | if (fairy == null)
|
| | | {
|
| | | fairy = new FairyData();
|
| | | }
|
| | | fairy.FamilyID = vNetData.FamilyID;
|
| | | if (fairy.FamilyID != 0) hasFairy = true;
|
| | | fairy.FamilyName = UIHelper.ServerStringTrim(vNetData.FamilyName);
|
| | | fairy.FamilyLV = vNetData.FamilyLV;
|
| | | fairy.FamilyLVExp = vNetData.FamilyLVExp;
|
| | | fairy.JoinReview = vNetData.JoinReview;
|
| | | fairy.JoinLVMin = vNetData.JoinLVMin;
|
| | | fairy.ServerID = vNetData.ServerID;
|
| | | fairy.EmblemID = vNetData.EmblemID;
|
| | | fairy.EmblemWord = vNetData.EmblemWord;
|
| | | fairy.totalFightPower = vNetData.FightPowerEx * Constants.ExpPointValue + vNetData.FightPower;
|
| | | fairy.Broadcast = vNetData.Broadcast;
|
| | | fairy.LeaderID = vNetData.LeaderID;
|
| | | fairy.MemberCount = vNetData.MemberCount;
|
| | |
|
| | | mine = null;
|
| | |
|
| | | memberDic.Clear();
|
| | | for (int i = 0; i < vNetData.MemberCount; i++)
|
| | | {
|
| | | FairyMember member = new FairyMember();
|
| | | memberDic[(int)vNetData.MemberList[i].PlayerID] = member;
|
| | |
|
| | | member.PlayerID = vNetData.MemberList[i].PlayerID;
|
| | | member.Name = vNetData.MemberList[i].Name;
|
| | | member.JoinTime = vNetData.MemberList[i].JoinTime;
|
| | | member.FmLV = vNetData.MemberList[i].FmLV;
|
| | | member.LV = vNetData.MemberList[i].LV;
|
| | | member.Job = vNetData.MemberList[i].Job;
|
| | | member.RealmLV = vNetData.MemberList[i].RealmLV;
|
| | | member.Face = vNetData.MemberList[i].Face;
|
| | | member.FacePic = vNetData.MemberList[i].FacePic;
|
| | | member.TitleID = vNetData.MemberList[i].TitleID;
|
| | | member.FightPower = vNetData.MemberList[i].FightPower + vNetData.MemberList[i].FightPowerEx * Constants.ExpPointValue;
|
| | | member.ServerID = vNetData.MemberList[i].ServerID;
|
| | | member.ContribTotal = vNetData.MemberList[i].ContribTotal;
|
| | | member.ContribDay = vNetData.MemberList[i].ContribDay;
|
| | | member.DonateCntTotal = vNetData.MemberList[i].DonateCntTotal;
|
| | | member.DonateCntDay = vNetData.MemberList[i].DonateCntDay;
|
| | | member.OffTime = vNetData.MemberList[i].OffTime;
|
| | |
|
| | | if (member.PlayerID == PlayerDatas.Instance.baseData.PlayerID)
|
| | | {
|
| | | //自己
|
| | | mine = member;
|
| | | }
|
| | |
|
| | | // 0-成员,1-精英,2-副盟主,3-盟主
|
| | |
|
| | | // if (member.FmLV == 1)
|
| | | // {
|
| | | // eliteList.Add(member);
|
| | | // }
|
| | | // else if (member.FamilyLV == 2)
|
| | | // {
|
| | | // deputyLeaderList.Add(member);
|
| | | // }
|
| | | if (member.FmLV == 3)
|
| | | {
|
| | | leaderID = (int)member.PlayerID;
|
| | | }
|
| | | }
|
| | |
|
| | | if (OnRefreshFairyInfo != null) OnRefreshFairyInfo();
|
| | | }
|
| | |
|
| | | public FairyMember GetMember(int playerid)
|
| | | {
|
| | | FairyMember member = null;
|
| | | memberDic.TryGetValue(playerid, out member);
|
| | | return member;
|
| | | }
|
| | |
|
| | |
|
| | | #region 仙盟权力开启条件
|
| | | public bool IsCanFunc(LimitFunc funcType)
|
| | | {
|
| | | if (mine != null)
|
| | | {
|
| | | return mine.FmLV >= GuildManager.Instance.guildWorkToLevel[(int)funcType];
|
| | | }
|
| | | return false;
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | //公会数据
|
| | | public class FairyData
|
| | | {
|
| | | public ushort Rank; //名次,从1开始
|
| | | public uint FamilyID;
|
| | | public string FamilyName; //家族名称
|
| | | public byte FamilyLV; //家族等级
|
| | | public uint FamilyLVExp; //家族等级经验
|
| | | public byte JoinReview; //成员加入是否需要审核,默认0自动加入
|
| | | public ushort JoinLVMin; //限制最低可加入的玩家等级
|
| | | public uint ServerID; //区服ID,创建时以族长的区服ID赋值
|
| | | public uint EmblemID; //徽章ID
|
| | | public string EmblemWord; //徽章文字
|
| | | public long totalFightPower;
|
| | | public string Broadcast;
|
| | | public uint LeaderID; //族长玩家ID
|
| | | public int MemberCount;
|
| | |
|
| | | //查找增加的字段
|
| | | public string LeaderName;
|
| | |
|
| | | }
|
| | |
|
| | | public class FairyMember
|
| | | {
|
| | | public uint PlayerID;
|
| | | public string Name; //size = NameLen
|
| | | public uint JoinTime; //加入家族时时间戳
|
| | | public byte FmLV; //家族职位: 0-成员;1-精英;2-副族长;3-族长
|
| | | public ushort LV; //等级
|
| | | public byte Job; //职业
|
| | | public byte RealmLV; //境界
|
| | | public uint Face; //基本脸型
|
| | | public uint FacePic; //头像框
|
| | | public uint TitleID; //称号
|
| | | public long FightPower; //战力,求余亿部分
|
| | | public uint ServerID; //所属区服ID
|
| | | public uint ContribTotal; //总贡献度
|
| | | public uint ContribDay; //日贡献度
|
| | | public uint DonateCntTotal; //总捐献次数
|
| | | public byte DonateCntDay; //日捐献次数
|
| | | public uint OffTime; // 0-在线; >0-/离线时间戳
|
| | | }
|
| | |
|
| | | public class FairyApply
|
| | | {
|
| | | public uint PlayerID;
|
| | | public string Name; |
| | | public uint ReqTime; //申请时间戳
|
| | | public ushort LV; //等级
|
| | | public byte Job; //职业
|
| | | public byte RealmLV; //境界
|
| | | public uint Face; //基本脸型
|
| | | public uint FacePic; //头像框
|
| | | public uint TitleID; //称号
|
| | | public long FightPower; |
| | | public uint ServerID; //所属区服ID
|
| | | public byte IsOnLine; //是否在线
|
| | | }
|
| | |
|
| | | //权限ID: 1-收人,2-变更职位,3-发布公告,4-踢人
|
| | | public enum LimitFunc
|
| | | {
|
| | | CanCall = 1,
|
| | | CanJobTitle,
|
| | | CanNotify,
|
| | | CanKick,
|
| | | } |