vectozavr-shooter/ShooterMsgType.cpp

18 lines
354 B
C++
Raw Normal View History

2021-10-28 16:58:02 +03:00
//
// Created by Иван Ильин on 27.10.2021.
//
#include "ShooterMsgType.h"
sf::Packet& operator<<(sf::Packet& packet, ShooterMsgType type)
{
return packet << (sf::Uint16)type;
}
sf::Packet& operator>>(sf::Packet& packet, ShooterMsgType& type)
{
sf::Uint16 temp;
packet >> temp;
type = (ShooterMsgType)temp;
return packet;
}