High Level API - Fully Functional
This commit is contained in:
27
include/HLAPI/DataReceivedEvent.hpp
Normal file
27
include/HLAPI/DataReceivedEvent.hpp
Normal file
@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "NetworkMessage.hpp"
|
||||
|
||||
namespace std::net
|
||||
{
|
||||
class DataReceivedEvent
|
||||
{
|
||||
public:
|
||||
inline DataReceivedEvent(const NetworkMessage &msg)
|
||||
{
|
||||
SenderID = msg.GetSenderID();
|
||||
DistributionMode = msg.GetDistributionMode();
|
||||
DestinationID = msg.GetDestinationID();
|
||||
Tag = msg.GetTag();
|
||||
Data = msg.GetData<void>();
|
||||
}
|
||||
|
||||
public:
|
||||
uint32_t SenderID;
|
||||
DistributionMode DistributionMode;
|
||||
uint32_t DestinationID;
|
||||
uint32_t Tag;
|
||||
|
||||
void *Data;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user