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,
|
2022-07-22 22:52:54 +03:00
|
|
|
ChangeWeapon,
|
|
|
|
newMessage
|
2021-10-28 16:58:02 +03:00
|
|
|
};
|
|
|
|
|
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
|