ezEngine  Milestone 9
StageSpaceComponent.h
1 #pragma once
2 
3 #include <GameEngine/GameEngineDLL.h>
4 #include <GameEngine/Interfaces/VRInterface.h>
5 #include <Core/World/SettingsComponentManager.h>
6 
8 
10 
15 class EZ_GAMEENGINE_DLL ezStageSpaceComponent : public ezComponent
16 {
18 
19 public:
22 
23  //
24  // ezDeviceTrackingComponent Interface
25  //
26 
28  void SetStageSpace(ezEnum<ezVRStageSpace> space);
29  ezEnum<ezVRStageSpace> GetStageSpace() const;
30 
31 protected:
32  //
33  // ezComponent Interface
34  //
35  virtual void SerializeComponent(ezWorldWriter& stream) const override;
36  virtual void DeserializeComponent(ezWorldReader& stream) override;
37  virtual void OnActivated() override;
38  virtual void OnDeactivated() override;
39 
40 private:
41  ezEnum<ezVRStageSpace> m_space;
42 };
43 
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition: WorldReader.h:12
Base class of all component types.
Definition: Component.h:19
virtual void DeserializeComponent(ezWorldReader &stream)
Override this to load the current state of the component from the given stream.
Definition: Component.cpp:71
virtual void SerializeComponent(ezWorldWriter &stream) const
Override this to save the current state of the component to the given stream.
Definition: Component.cpp:69
A component manager that does no update at all on components and expects only a single instance to be...
Definition: SettingsComponentManager.h:13
virtual void OnDeactivated()
This method is called when the component gets deactivated.
Definition: Component.cpp:198
virtual void OnActivated()
This method is called when the component gets activated.
Definition: Component.cpp:196
Stores an entire ezWorld in a stream.
Definition: WorldWriter.h:15
Singleton to set the type of stage space and its global transform in the world.
Definition: StageSpaceComponent.h:15