Files
unity-application/Assets/Common/Interfaces/Minigame.cs
Helena Van Breugel a19d89db03 Resolve WES-80 "Data"
2023-03-18 22:32:36 +00:00

44 lines
1.1 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>
/// Reference to specific themelist, null if no theme needed
/// </summary>
public ThemeList themeList = null;
/// <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;
}