// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Scripting/ScriptingType.h" /// /// Network connection structure - used to identify connected peers when we're listening. /// API_STRUCT(Namespace="FlaxEngine.Networking") struct FLAXENGINE_API NetworkConnection { DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkConnection); public: /// /// The identifier of the connection. /// /// Used by network driver implementations. API_FIELD() uint32 ConnectionId; }; template<> struct TIsPODType { enum { Value = true }; }; inline bool operator==(const NetworkConnection& a, const NetworkConnection& b) { return a.ConnectionId == b.ConnectionId; }