Files
unity-application/Assets/Common/Scripts/Minigame.cs
Dries Van Schuylenbergh dfc69ddd76 Resolve WES-99 "Cc refactor"
2023-03-14 10:56:42 +00:00

44 lines
1.0 KiB
C#

using UnityEngine;
/// <summary>
/// Class for holding all (static) data about a certain minigame
/// </summary>
[CreateAssetMenu(menuName = "Create new Scriptable/Minigame")]
public class Minigame : ScriptableObject
{
/// <summary>
/// Index of the minigame
/// </summary>
public MinigameIndex index;
/// <summary>
/// The minigame title
/// </summary>
public string title;
/// <summary>
/// A short description of the minigame
/// </summary>
public string description;
/// <summary>
/// Whether or not the game needs a theme to be selected
/// </summary>
public bool needsTheme;
/// <summary>
/// Reference to the minigame thumbnail
/// </summary>
public Sprite thumbnail;
/// <summary>
/// The path to the minigame starting scene (<c>path == $"Assets/{minigameEntryPoint}"</c>)
/// </summary>
public string minigameEntryPoint;
/// <summary>
/// An explanation on how to play the game and score points
/// </summary>
public string controls;
}