private void WriteData(Account member, SendGPacket p)
 {
     p.writeQ(member.player_id);
     p.writeS(member.player_name, 33);
     p.writeC((byte)member._rank);
     p.writeC((byte)member.clanAccess);
     p.writeQ(ComDiv.GetClanStatus(member._status, member._isOnline));
     p.writeD(member.clanDate);
     p.writeC((byte)member.name_color);
 }
Example #2
0
 public CLAN_MEMBER_INFO_CHANGE_PAK(Account player, FriendState st)
 {
     this.p = player;
     if (st == FriendState.None)
     {
         this.status = ComDiv.GetClanStatus(player._status, player._isOnline);
     }
     else
     {
         this.status = ComDiv.GetClanStatus(st);
     }
 }
 public CLAN_MEMBER_INFO_CHANGE_PAK(Account player, FriendState st)
 {
     member = player;
     if (st == 0)
     {
         status = ComDiv.GetClanStatus(player._status, player._isOnline);
     }
     else
     {
         status = ComDiv.GetClanStatus(st);
     }
 }
Example #4
0
 public override void write()
 {
     writeH(1349);
     writeC((byte)_players.Count);
     for (int i = 0; i < _players.Count; i++)
     {
         Account member = _players[i];
         writeC((byte)(member.player_name.Length + 1));
         writeS(member.player_name, member.player_name.Length + 1);
         writeQ(member.player_id);
         writeQ(ComDiv.GetClanStatus(member._status, member._isOnline));
         writeC((byte)member._rank);
     }
 }
Example #5
0
 public override void write()
 {
     this.writeH((short)1349);
     this.writeC((byte)this._players.Count);
     for (int index = 0; index < this._players.Count; ++index)
     {
         Account player = this._players[index];
         this.writeC((byte)(player.player_name.Length + 1));
         this.writeS(player.player_name, player.player_name.Length + 1);
         this.writeQ(player.player_id);
         this.writeQ(ComDiv.GetClanStatus(player._status, player._isOnline));
         this.writeC((byte)player._rank);
     }
 }
Example #6
0
 public CLAN_MEMBER_INFO_CHANGE_PAK(Account player)
 {
     this.p      = player;
     this.status = ComDiv.GetClanStatus(player._status, player._isOnline);
 }
 public CLAN_MEMBER_INFO_UPDATE_PAK(Account pl)
 {
     p      = pl;
     status = ComDiv.GetClanStatus(pl._status, pl._isOnline);
 }
 public CLAN_MEMBER_INFO_INSERT_PAK(Account pl)
 {
     this.p      = pl;
     this.status = ComDiv.GetClanStatus(pl._status, pl._isOnline);
 }