-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent_header.snippet
52 lines (48 loc) · 1.3 KB
/
component_header.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Component Header</Title>
<Author />
<Description>Components Header</Description>
<HelpUrl />
<SnippetTypes />
<Keywords />
<Shortcut>comph</Shortcut>
</Header>
<Snippet>
<References />
<Imports />
<Declarations>
<Literal Editable="true">
<ID>Component</ID>
<Type />
<ToolTip />
<Default>Component</Default>
<Function />
</Literal>
<Object Editable="true">
<ID>Namespace</ID>
<Type />
<ToolTip />
<Default>Namespace</Default>
<Function />
</Object>
</Declarations>
<Code Language="CPP"><![CDATA[#pragma once
#include "AzCore\Component\Component.h"
namespace $Namespace$ {
class $Component$
: public AZ::Component {
public:
AZ_COMPONENT($Component$, "{ }")
~$Component$() override {};
static void Reflect(AZ::ReflectContext* reflection);
void Init() override;
void Activate() override;
void Deactivate() override;
};
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>