forked from wovencode/ScriptableTemplates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseTemplate.cs
More file actions
46 lines (34 loc) · 1.41 KB
/
Copy pathBaseTemplate.cs
File metadata and controls
46 lines (34 loc) · 1.41 KB
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
// =======================================================================================
// Wovencore
// by Weaver (Fhiz)
// MIT licensed
// =======================================================================================
using System;
using UnityEngine;
using Wovencode;
namespace Wovencode {
// ===================================================================================
// BaseTemplate
// ===================================================================================
public abstract partial class BaseTemplate : ScriptableTemplate
{
public string sortCategory;
public int sortOrder;
public Sprite smallIcon;
public Sprite backgroundIcon;
public RarityTemplate rarity;
[TextArea(5,5)]
public string description;
// -------------------------------------------------------------------------------
// OnValidate
// if the title is empty, we simple copy the object name into the title
// note that we cannot cache the folderName here, because it would the same for all objects of this type
// -------------------------------------------------------------------------------
public override void OnValidate()
{
base.OnValidate();
}
// -------------------------------------------------------------------------------
}
}
// =======================================================================================