BVB Source Codes

CRYENGINE Show VehicleSeatSerializer.h Source code

Return Download CRYENGINE: download VehicleSeatSerializer.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    $Id$
  6.    $DateTime$
  7.    Description: Implements an entity class which can serialize vehicle parts
  8.  
  9.    -------------------------------------------------------------------------
  10.    History:
  11.    - 16:09:2005: Created by Mathieu Pinard
  12.  
  13. *************************************************************************/
  14. #ifndef __VEHICLESEATSERIALIZER_H__
  15. #define __VEHICLESEATSERIALIZER_H__
  16.  
  17. #include "IGameObject.h"
  18.  
  19. class CVehicle;
  20. class CVehicleSeat;
  21.  
  22. class CVehicleSeatSerializer
  23.         : public CGameObjectExtensionHelper<CVehicleSeatSerializer, IGameObjectExtension>
  24. {
  25. public:
  26.  
  27.         CVehicleSeatSerializer();
  28.         virtual ~CVehicleSeatSerializer();
  29.  
  30.         virtual bool                 Init(IGameObject* pGameObject);
  31.         virtual void                 InitClient(int channelId);
  32.         virtual void                 PostInit(IGameObject*)                                                          {}
  33.         virtual void                 PostInitClient(int channelId)                                                   {};
  34.         virtual bool                 ReloadExtension(IGameObject* pGameObject, const SEntitySpawnParams& params);
  35.         virtual void                 PostReloadExtension(IGameObject* pGameObject, const SEntitySpawnParams& params) {}
  36.         virtual void                 Release()                                                                       { delete this; }
  37.  
  38.         virtual void                 FullSerialize(TSerialize ser);
  39.         virtual bool                 NetSerialize(TSerialize ser, EEntityAspects aspect, uint8 profile, int flags);
  40.         virtual void                 PostSerialize() {}
  41.         virtual void                 SerializeSpawnInfo(TSerialize ser);
  42.         virtual ISerializableInfoPtr GetSpawnInfo();
  43.         virtual void                 Update(SEntityUpdateContext& ctx, int);
  44.         virtual void                 HandleEvent(const SGameObjectEvent& event);
  45.         virtual void                 ProcessEvent(SEntityEvent& event)  {};
  46.         virtual void                 SetChannelId(uint16 id)            {};
  47.         virtual void                 SetAuthority(bool auth)            {};
  48.         virtual void                 PostUpdate(float frameTime)        { CRY_ASSERT(false); };
  49.         virtual void                 PostRemoteSpawn()                  {};
  50.         virtual void                 GetMemoryUsage(ICrySizer* s) const { s->Add(*this); }
  51.  
  52.         void                         SetVehicle(CVehicle* pVehicle);
  53.         void                         SetSeat(CVehicleSeat* pSeat);
  54.  
  55. protected:
  56.         CVehicle*     m_pVehicle;
  57.         CVehicleSeat* m_pSeat;
  58. };
  59.  
  60. #endif
  61.  
downloadVehicleSeatSerializer.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top