-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVersionHistoryScriptableObject.cs
51 lines (44 loc) · 1.29 KB
/
VersionHistoryScriptableObject.cs
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
using System;
using System.Collections.Generic;
using UnityEngine;
namespace VersionHistory
{
[CreateAssetMenu(fileName = "ChangeLog", menuName = "GameLib/VersionHistory/ChangeLog", order = 1)]
public class ChangeLogScriptableObject : ScriptableObject
{
[Serializable]
public class Item
{
public enum ChangeCategory
{
Undetermined = 0,
Added,
Changed,
Deprecated,
Removed,
Fixed,
Security
}
[Tooltip("Excluded from changelog generation")]
public bool Included = true;
public ChangeCategory Category;
[Multiline]
public string Description;
}
[Serializable]
public class Version
{
public string VersionName;
public List<Item> Items = new();
}
[HideInInspector]
public List<Version> Versions;
public ChangeLogSettings Settings = new();
public void Reset()
{
Settings.GenerateMarkdownChangeLog = true;
Settings.MarkdownChangeLogPath = "ChangeLog.md";
Settings.CompanyName = Application.companyName;
}
}
}