Fission FSN
Loading...
Searching...
No Matches
fsCTaggableComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCTaggableComponent.h
4*
5* Purpose: Identification component - removes empty component
6* behaviour when we just need identification.
7*
8*********************************************************************/
9
10#ifndef fsCTaggableComponenthdr
11#define fsCTaggableComponenthdr
12
14
16
17
19{
20 friend class fsCComponentFactory;
21
22public:
23
24 fsBool tagged(fsStr const& pTag) const;
25 void tag(fsStr const& pTag);
26
27 static const fsCUniqueId mTypeId;
28
29protected:
30
31 static fsIComponent* create(fsCEntity* pParent);
32
34 virtual ~fsCTaggableComponent();
35
36private:
37
38 std::vector<fsStr> mTags;
39};
40
41#endif
Definition fsCEntity.h:39
fsCTaggableComponent(fsCEntity *pParent)
Definition fsCTaggableComponent.cpp:25
static const fsCUniqueId mTypeId
Definition fsCTaggableComponent.h:27
static fsIComponent * create(fsCEntity *pParent)
Definition fsCTaggableComponent.cpp:20
friend class fsCComponentFactory
Definition fsCTaggableComponent.h:20
virtual ~fsCTaggableComponent()
Definition fsCTaggableComponent.cpp:30
void tag(fsStr const &pTag)
Definition fsCTaggableComponent.cpp:12
fsBool tagged(fsStr const &pTag) const
Definition fsCTaggableComponent.cpp:7
Definition fsCUniqueId.h:21
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26