vectozavr-shooter/ShooterMsgType.h

25 lines
453 B
C
Raw Normal View History

2021-10-28 16:58:02 +03:00
//
// Created by Иван Ильин on 27.10.2021.
//
#ifndef SHOOTER_SHOOTERMSGTYPE_H
#define SHOOTER_SHOOTERMSGTYPE_H
#include <SFML/Network.hpp>
2021-10-31 11:39:08 +03:00
enum class ShooterMsgType {
2021-10-28 16:58:02 +03:00
Damage,
Kill,
FireTrace,
InitBonuses,
AddBonus,
RemoveBonus,
ChangeWeapon
};
2021-10-31 11:39:08 +03:00
sf::Packet &operator<<(sf::Packet &packet, ShooterMsgType type);
sf::Packet &operator>>(sf::Packet &packet, ShooterMsgType &type);
2021-10-28 16:58:02 +03:00
#endif //SHOOTER_SHOOTERMSGTYPE_H