mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Merge branch 'group_work' of https://bitbucket.org/Ioncannon/ffxiv-classic-server into group_work
# Conflicts: # FFXIVClassic Map Server/WorldManager.cs
This commit is contained in:
		| @@ -0,0 +1,45 @@ | ||||
| using FFXIVClassic_Map_Server.actors.group; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace FFXIVClassic_Map_Server.packets.WorldPackets.Receive | ||||
| { | ||||
|     class PartySyncPacket | ||||
|     { | ||||
|         public ulong partyGroupId; | ||||
|         public uint owner; | ||||
|         public uint[] memberActorIds; | ||||
|  | ||||
|         public bool invalidPacket = false; | ||||
|  | ||||
|         public PartySyncPacket(byte[] data) | ||||
|         { | ||||
|             using (MemoryStream mem = new MemoryStream(data)) | ||||
|             { | ||||
|                 using (BinaryReader binReader = new BinaryReader(mem)) | ||||
|                 { | ||||
|                     try | ||||
|                     { | ||||
|                         partyGroupId = binReader.ReadUInt64(); | ||||
|                         uint owner = binReader.ReadUInt32(); | ||||
|                         uint numMembers = binReader.ReadUInt32(); | ||||
|                         memberActorIds = new uint[numMembers]; | ||||
|  | ||||
|                         PartyGroup group = new PartyGroup(partyGroupId, owner); | ||||
|                         for (int i = 0; i < numMembers; i++)                         | ||||
|                             memberActorIds[i] = binReader.ReadUInt32();                         | ||||
|                     } | ||||
|                     catch (Exception) | ||||
|                     { | ||||
|                         invalidPacket = true; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user