mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Cleaned up the code and fixed a bunch of bugs. Map server will no longer worry about base packets.
This commit is contained in:
		| @@ -31,15 +31,16 @@ namespace FFXIVClassic_Map_Server.dataobjects | ||||
|             actorInstanceList.Add(playerActor); | ||||
|         } | ||||
|  | ||||
|         public void QueuePacket(BasePacket basePacket) | ||||
|         public void QueuePacket(List<SubPacket> packets) | ||||
|         { | ||||
|             Server.GetWorldConnection().QueuePacket(basePacket); | ||||
|             foreach (SubPacket s in packets) | ||||
|                 QueuePacket(s); | ||||
|         } | ||||
|  | ||||
|         public void QueuePacket(SubPacket subPacket) | ||||
|         { | ||||
|             subPacket.SetTargetId(id); | ||||
|             Server.GetWorldConnection().QueuePacket(subPacket, true, false); | ||||
|             Server.GetWorldConnection().QueuePacket(subPacket); | ||||
|         } | ||||
|  | ||||
|         public Player GetActor() | ||||
|   | ||||
| @@ -17,14 +17,7 @@ namespace FFXIVClassic_Map_Server.dataobjects | ||||
|         private BlockingCollection<SubPacket> SendPacketQueue = new BlockingCollection<SubPacket>(1000); | ||||
|         public int lastPartialSize = 0; | ||||
|  | ||||
|         public void QueuePacket(BasePacket packet) | ||||
|         { | ||||
|             List<SubPacket> subPackets = packet.GetSubpackets(); | ||||
|             foreach (SubPacket s in subPackets) | ||||
|                 SendPacketQueue.Add(s); | ||||
|         } | ||||
|  | ||||
|         public void QueuePacket(SubPacket subpacket, bool isAuthed, bool isEncrypted) | ||||
|         public void QueuePacket(SubPacket subpacket) | ||||
|         { | ||||
|             SendPacketQueue.Add(subpacket); | ||||
|         } | ||||
| @@ -68,7 +61,7 @@ namespace FFXIVClassic_Map_Server.dataobjects | ||||
|         public void RequestZoneChange(uint sessionId, uint destinationZoneId, byte spawnType, float spawnX, float spawnY, float spawnZ, float spawnRotation) | ||||
|         { | ||||
|             WorldRequestZoneChangePacket.BuildPacket(sessionId, destinationZoneId, spawnType, spawnX, spawnY, spawnZ, spawnRotation).DebugPrintSubPacket(); | ||||
|             QueuePacket(WorldRequestZoneChangePacket.BuildPacket(sessionId, destinationZoneId, spawnType, spawnX, spawnY, spawnZ, spawnRotation), true, false); | ||||
|             QueuePacket(WorldRequestZoneChangePacket.BuildPacket(sessionId, destinationZoneId, spawnType, spawnX, spawnY, spawnZ, spawnRotation)); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user