public void StructureFireResponse(MessageFireRequestResponse data) { var structure = GetStructureByID(data.FiringObjectID); if (structure != null) // Denial may be received after kill message { structure.WaitingForFireResponse = false; } }
public void ShipFireResponse(MessageFireRequestResponse data) { var firingShip = _clientShipManager.GetShip(data.FiringObjectID); if (firingShip == null) { ConsoleManager.WriteLine("Warning: ship not found on fire request response.", ConsoleMessageType.Warning); return; } firingShip.WaitingForFireResponse = false; }