r5sdk/r5dev/game/server/networkproperty.h
Kawe Mazidjatari 7727f13efa /W4: Fix return value truncation warning
Fix value truncation warning caused by returning 'CServerNetworkProperty::m_edict' in 'CServerNetworkProperty::GetEdict'. type has been demoted to actual type 'edict_t'.
2023-04-02 17:21:21 +02:00

33 lines
721 B
C++
Raw Blame History

//===== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#ifndef SERVERNETWORKPROPERTY_H
#define SERVERNETWORKPROPERTY_H
#ifdef _WIN32
#pragma once
#endif
#include "public/iservernetworkable.h"
#include "public/server_class.h"
#include "public/edict.h"
#include "game/shared/predictioncopy.h"
class CServerNetworkProperty : IServerNetworkable
{
public:
edict_t GetEdict() const;
private:
CBaseEntity* m_pOuter;
ServerClass* m_pServerClass;
edict_t m_edict;
EHANDLE m_hParent;
};
static_assert(sizeof(CServerNetworkProperty) == 32);
#endif // SERVERNETWORKPROPERTY_H