-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapoTofu.SaveData.Load.snippet
52 lines (52 loc) · 1.43 KB
/
MapoTofu.SaveData.Load.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>SaveData.Load</Title>
<Author>Cong Wang</Author>
<Shortcut>load</Shortcut>
<Description>Load Data using MapoTofu.SaveData</Description>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>System.Text</Namespace>
</Import>
<Import>
<Namespace>MapoTofu.SaveData</Namespace>
</Import>
</Imports>
<Declarations>
<Literal>
<ID>returnData</ID>
<Default>Data</Default>
</Literal>
<Literal>
<ID>dataType</ID>
<Default>DataType</Default>
</Literal>
<Literal>
<ID>identifier</ID>
<Default>"identifier"</Default>
</Literal>
<Literal>
<ID>defaultData</ID>
<Default>defaultData</Default>
</Literal>
<Literal>
<ID>encoding</ID>
<Default>Encoding.UTF8</Default>
</Literal>
<Literal>
<ID>password</ID>
<Default>null</Default>
</Literal>
</Declarations>
<Code Language="CSharp">
<![CDATA[
$returnData$ = SaveData.Load<$dataType$>($identifier$, $defaultData$, $encoding$, $password$);
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>