mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix value truncation warning caused by returning 'CServerNetworkProperty::m_edict' in 'CServerNetworkProperty::GetEdict'. type has been demoted to actual type 'edict_t'.
33 lines
721 B
C++
33 lines
721 B
C++
//===== 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
|