ezEngine  Milestone 9
UpdateLocalBoundsMessage.h
1 #pragma once
2 
3 #include <Core/CoreDLL.h>
4 #include <Foundation/Communication/Message.h>
5 #include <Foundation/Math/BoundingBoxSphere.h>
6 
7 struct EZ_CORE_DLL ezMsgUpdateLocalBounds : public ezMessage
8 {
9  EZ_DECLARE_MESSAGE_TYPE(ezMsgUpdateLocalBounds, ezMessage);
10 
11  EZ_ALWAYS_INLINE void AddBounds(const ezBoundingBoxSphere& bounds) { m_ResultingLocalBounds.ExpandToInclude(bounds); }
12 
15  EZ_ALWAYS_INLINE void SetAlwaysVisible() { m_bAlwaysVisible = true; }
16 
17 private:
18  friend class ezGameObject;
19 
20  ezBoundingBoxSphere m_ResultingLocalBounds;
21  bool m_bAlwaysVisible = false;
22 };
23 
Base class for all message types. Each message type has it&#39;s own id which is used to dispatch message...
Definition: Message.h:21
Definition: UpdateLocalBoundsMessage.h:7
This class represents an object inside the world.
Definition: GameObject.h:20
EZ_ALWAYS_INLINE void SetAlwaysVisible()
Enforces the object to be always visible. Note that you can&#39;t set this flag to false again...
Definition: UpdateLocalBoundsMessage.h:15