Plasma Engine  2.0
Loading...
Searching...
No Matches
NpcComponent.h
1#pragma once
2
3#include <Core/World/Component.h>
4#include <Core/World/World.h>
5#include <RecastPlugin/RecastPluginDLL.h>
6
9class PL_RECASTPLUGIN_DLL plNpcComponent : public plComponent
10{
11 PL_DECLARE_ABSTRACT_COMPONENT_TYPE(plNpcComponent, plComponent);
12
14 // plComponent
15
16public:
17 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
18 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
19
21 // plNpcComponent
22
23public:
26};
Base class of all component types.
Definition Component.h:25
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Base class for all components that implement 'non player character' behavior. Ie, game logic for how ...
Definition NpcComponent.h:10
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