Files
UnrealEngine/Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2Input/Public/IPixelStreaming2InputMessage.h
2025-05-18 13:04:45 +08:00

29 lines
737 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "PixelStreaming2InputEnums.h"
#include "Containers/Array.h"
#include "HAL/Platform.h"
/**
* A message that is sent over the Pixel Streaming data channel.
*/
class PIXELSTREAMING2INPUT_API IPixelStreaming2InputMessage
{
public:
/**
* Gets the id of the message.
* Note: All messages required a unique id.
* @return The id of the message.
*/
virtual uint8 GetID() const = 0;
/**
* Get the message structure, e.g. the array of types that make up this message.
* Note: The types are packed tightly and sent in a byte buffer.
* @return The structure of the message.
*/
virtual TArray<EPixelStreaming2MessageTypes> GetStructure() const = 0;
};