BVB Source Codes

CRYENGINE Show SimulateRemoveEntityParts.h Source code

Return Download CRYENGINE: download SimulateRemoveEntityParts.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:  network breakability: generic 'remove parts' events - try not to use
  8.    -------------------------------------------------------------------------
  9.    History:
  10.    - 22/01/2007   10:34 : Created by Craig Tiller
  11. *************************************************************************/
  12. #ifndef __SIMULATEREMOVEENTITYPARTS_H__
  13. #define __SIMULATEREMOVEENTITYPARTS_H__
  14.  
  15. #pragma once
  16.  
  17. #if !NET_USE_SIMPLE_BREAKAGE
  18.  
  19.         #include "ObjectSelector.h"
  20.  
  21. struct SSimulateRemoveEntityParts
  22. {
  23.         CObjectSelector ent;
  24.         unsigned int    partIds[4];
  25.         float           massOrg;
  26.  
  27.         void            SerializeWith(TSerialize ser);
  28. };
  29.  
  30. struct SSimulateRemoveEntityPartsMessage : public SSimulateRemoveEntityParts
  31. {
  32.         SSimulateRemoveEntityPartsMessage() : breakId(-1) {}
  33.         SSimulateRemoveEntityPartsMessage(const SSimulateRemoveEntityParts& p, int bid) : SSimulateRemoveEntityParts(p), breakId(bid) {}
  34.         int breakId;
  35.  
  36.         void SerializeWith(TSerialize ser);
  37. };
  38.  
  39. struct SSimulateRemoveEntityPartsInfo : public IBreakDescriptionInfo, public SSimulateRemoveEntityParts
  40. {
  41.         void GetAffectedRegion(AABB& aabb);
  42.         void AddSendables(INetSendableSink* pSink, int32 brkId);
  43. };
  44.  
  45. #endif // !NET_USE_SIMPLE_BREAKAGE
  46.  
  47. #endif
  48.  
downloadSimulateRemoveEntityParts.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