TraversalProto: Convert typedefs into using aliases

Same behavior, more straightforward reading.
This commit is contained in:
Lioncash 2021-01-19 14:15:09 -05:00
parent d48b5615ae
commit f0c6e696fd
1 changed files with 5 additions and 3 deletions

View File

@ -1,12 +1,14 @@
// This file is public domain, in case it's useful to anyone. -comex
#pragma once
#include <array>
#include <cstddef>
#include "Common/CommonTypes.h"
#define NETPLAY_CODE_SIZE 8
typedef std::array<char, NETPLAY_CODE_SIZE> TraversalHostId;
typedef u64 TraversalRequestId;
constexpr size_t NETPLAY_CODE_SIZE = 8;
using TraversalHostId = std::array<char, NETPLAY_CODE_SIZE>;
using TraversalRequestId = u64;
enum class TraversalPacketType : u8
{