| | |
| | | |
| | | public class CA619_tagCSViewTagFamily : GameNetPackBasic { |
| | | public uint FamilyID; |
| | | public uint DataServerID; //数据所在服务器ID |
| | | public uint FamilyServerID; //公会区服ID |
| | | |
| | | public CA619_tagCSViewTagFamily () { |
| | | combineCmd = (ushort)0x03FE; |
| | |
| | | |
| | | public override void WriteToBytes () { |
| | | WriteBytes (FamilyID, NetDataType.DWORD); |
| | | WriteBytes (DataServerID, NetDataType.DWORD); |
| | | WriteBytes (FamilyServerID, NetDataType.DWORD); |
| | | } |
| | | |
| | | } |
| | |
| | | public string Broadcast; //size = BroadcastLen |
| | | public byte MemberCount; //成员人数 |
| | | public tagSCTagFamilyInfoMem[] MemberList; |
| | | public uint DataServerID; //数据所在服务器ID |
| | | |
| | | public HA519_tagSCTagFamilyInfo () { |
| | | _cmd = (ushort)0xA519; |
| | |
| | | TransBytes (out MemberList[i].FightPowerEx, vBytes, NetDataType.DWORD); |
| | | TransBytes (out MemberList[i].ServerID, vBytes, NetDataType.DWORD); |
| | | } |
| | | TransBytes (out DataServerID, vBytes, NetDataType.DWORD); |
| | | } |
| | | |
| | | public class tagSCTagFamilyInfoMem { |
| | |
| | | public string FamilyName;
|
| | | public uint FamilyEmblemID; //仙盟徽章ID
|
| | | public string FamilyEmblemWord; //徽章文字
|
| | | public uint FamilyDataServerID; //公会数据所在服务器ID,A619查看公会用
|
| | | public uint FamilyServerID; //公会区服ID |
| | | public uint PlusDataSize;
|
| | | public string PlusData; //扩展记录
|
| | |
|
| | |
| | | TransBytes (out FamilyName, vBytes, NetDataType.Chars, 33);
|
| | | TransBytes (out FamilyEmblemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyEmblemWord, vBytes, NetDataType.Chars, 3);
|
| | | TransBytes (out FamilyDataServerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out FamilyServerID, vBytes, NetDataType.DWORD); |
| | | TransBytes (out PlusDataSize, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out PlusData, vBytes, NetDataType.Chars, PlusDataSize);
|
| | | }
|
| | |
| | | return; |
| | | } |
| | | |
| | | GuildManager.Instance.SendViewGuild(familyID, rankData.LeaderServerID); |
| | | GuildManager.Instance.SendViewGuild(familyID, rankData.ServerID); |
| | | }); |
| | | } |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | GuildManager.Instance.SendViewGuild(familyID, rankData.LeaderServerID); |
| | | GuildManager.Instance.SendViewGuild(familyID, rankData.ServerID); |
| | | }); |
| | | } |
| | | } |
| | |
| | | {
|
| | | var pack = new CA619_tagCSViewTagFamily();
|
| | | pack.FamilyID = (uint)fairyID;
|
| | | pack.DataServerID = (uint)serverID;
|
| | | pack.FamilyServerID = (uint)serverID; |
| | | GameNetSystem.Instance.SendInfo(pack);
|
| | | }
|
| | | #endregion
|
| | |
| | | |
| | | seeGuildBtn.AddListener(() => |
| | | { |
| | | GuildManager.Instance.SendViewGuild(guildInfo.FamilyID, guildInfo.LeaderServerID); |
| | | GuildManager.Instance.SendViewGuild(guildInfo.FamilyID, guildInfo.ServerID); |
| | | }); |
| | | } |
| | | |
| | |
| | | viewPlayerData.FamilyID = (int)package.FamilyID; |
| | | viewPlayerData.FamilyName = UIHelper.ServerStringTrim(package.FamilyName); |
| | | viewPlayerData.FamilyEmblemID = (int)package.FamilyEmblemID; |
| | | viewPlayerData.FamilyDataServerID = (int)package.FamilyDataServerID; |
| | | viewPlayerData.FamilyServerID = (int)package.FamilyServerID; |
| | | viewPlayerData.FamilyEmblemWord = UIHelper.ServerStringTrim(package.FamilyEmblemWord); |
| | | |
| | | |
| | |
| | | public int ServerID; |
| | | public long FightPower; |
| | | public int FamilyID; |
| | | public int FamilyDataServerID; //公会数据所在服务器ID,A619查看公会用 |
| | | public int FamilyServerID; //公会区服ID,A619查看公会用 |
| | | public string FamilyName; |
| | | public int FamilyEmblemID; |
| | | public string FamilyEmblemWord; |
| | |
| | | SysNotifyMgr.Instance.ShowTip("GuildTip01"); |
| | | return; |
| | | } |
| | | GuildManager.Instance.SendViewGuild(viewPlayerData.FamilyID, viewPlayerData.FamilyDataServerID); |
| | | GuildManager.Instance.SendViewGuild(viewPlayerData.FamilyID, viewPlayerData.FamilyServerID); |
| | | } |
| | | |
| | | private void OnClickMM() |