BITFALL/Assets/Plugins/Polaris - Low Poly Ecosystem/Polaris - Low Poly Terrain .../Editor/Scripts/HelpTool/GHelpEntry.cs

86 lines
1.6 KiB
C#
Raw Normal View History

2024-03-05 17:34:41 +08:00
#if GRIFFIN
2023-12-30 17:37:48 +08:00
using System.Collections.Generic;
using UnityEngine;
namespace Pinwheel.Griffin.HelpTool
{
[System.Serializable]
public struct GHelpEntry
{
[SerializeField]
private int id;
public int Id
{
get
{
return id;
}
set
{
id = Mathf.Max(1, value);
}
}
[SerializeField]
private GCategory category;
public GCategory Category
{
get
{
return category;
}
set
{
category = value;
}
}
[SerializeField]
private string question;
public string Question
{
get
{
return question;
}
set
{
question = value;
}
}
[SerializeField]
private string answer;
public string Answer
{
get
{
return answer;
}
set
{
answer = value;
}
}
[SerializeField]
private List<GHelpLink> links;
public List<GHelpLink> Links
{
get
{
if (links == null)
{
links = new List<GHelpLink>();
}
return links;
}
set
{
links = value;
}
}
}
}
2024-03-05 17:34:41 +08:00
#endif