Plasma Engine  2.0
Loading...
Searching...
No Matches
FmodComponent.h
1#pragma once
2
3#include <Core/World/Component.h>
4#include <Core/World/World.h>
5#include <FmodPlugin/FmodPluginDLL.h>
6
8class PL_FMODPLUGIN_DLL plFmodComponent : public plComponent
9{
10 PL_DECLARE_ABSTRACT_COMPONENT_TYPE(plFmodComponent, plComponent);
11
13 // plComponent
14
15public:
16 virtual void SerializeComponent(plWorldWriter& inout_stream) const override {}
17 virtual void DeserializeComponent(plWorldReader& inout_stream) override {}
18
20 // plFmodComponent
21
22public:
25
26private:
27 virtual void plFmodComponentIsAbstract() = 0; // abstract classes are not shown in the UI, since this class has no other abstract functions so far, this is a dummy
28};
Base class of all component types.
Definition Component.h:25
Base class for all Fmod components, such that they all have a common ancestor.
Definition FmodComponent.h:9
virtual void DeserializeComponent(plWorldReader &inout_stream) override
Override this to load the current state of the component from the given stream.
Definition FmodComponent.h:17
virtual void SerializeComponent(plWorldWriter &inout_stream) const override
Override this to save the current state of the component to the given stream.
Definition FmodComponent.h:16
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13