Mesen/Core/MovieDataMessage.h
Souryo 48409ae82b -Rewrote entire GUI in .NET
-Several other fixes (bugfixes, refactoring, etc.)
-Added a few more features to debugger
2015-07-01 23:17:14 -04:00

36 lines
612 B
C++

#pragma once
#include "stdafx.h"
#include "NetMessage.h"
class MovieDataMessage : public NetMessage
{
private:
uint8_t _portNumber;
uint8_t _inputState;
protected:
virtual void ProtectedStreamState()
{
Stream<uint8_t>(_portNumber);
Stream<uint8_t>(_inputState);
}
public:
MovieDataMessage(void* buffer, uint32_t length) : NetMessage(buffer, length) { }
MovieDataMessage(uint8_t state, uint8_t port) : NetMessage(MessageType::MovieData)
{
_portNumber = port;
_inputState = state;
}
uint8_t GetPortNumber()
{
return _portNumber;
}
uint8_t GetInputState()
{
return _inputState;
}
};